t

akka.event

LoggingAdapter

trait LoggingAdapter extends AnyRef

Logging wrapper to make nicer and optimize: provide template versions which evaluate .toString only if the log level is actually enabled. Typically used by obtaining an implementation from the Logging object:

val log = Logging(<bus>, <source object>)
...
log.info("hello world!")

All log-level methods support simple interpolation templates with up to four arguments placed by using {} within the template (first string argument):

log.error(exception, "Exception while processing {} in state {}", msg, state)

More than four arguments can be defined by using an Array with the method with one argument parameter.

Source
Logging.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingAdapter
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type MDC = Map[String, Any]

Abstract Value Members

  1. abstract def isDebugEnabled: Boolean
  2. abstract def isErrorEnabled: Boolean
  3. abstract def isInfoEnabled: Boolean
  4. abstract def isWarningEnabled: Boolean
  5. abstract def notifyDebug(message: String): Unit
    Attributes
    protected
  6. abstract def notifyError(cause: Throwable, message: String): Unit
    Attributes
    protected
  7. abstract def notifyError(message: String): Unit
    Attributes
    protected
  8. abstract def notifyInfo(message: String): Unit
    Attributes
    protected
  9. abstract def notifyWarning(message: String): Unit
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to any2stringadd[LoggingAdapter] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LoggingAdapter, B)
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

  9. def debug(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

  10. def debug(template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

  11. def debug(template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

    See also

    LoggingAdapter

  12. def debug(message: String): Unit

    Log message at debug level.

    Log message at debug level.

    See also

    LoggingAdapter

  13. def ensuring(cond: (LoggingAdapter) ⇒ Boolean, msg: ⇒ Any): LoggingAdapter
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (LoggingAdapter) ⇒ Boolean): LoggingAdapter
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): LoggingAdapter
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): LoggingAdapter
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to Ensuring[LoggingAdapter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

  20. def error(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

  21. def error(template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

  22. def error(template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

    See also

    LoggingAdapter

  23. def error(message: String): Unit

    Log message at error level, without providing the exception that caused the error.

    Log message at error level, without providing the exception that caused the error.

    See also

    LoggingAdapter

  24. def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

  25. def error(cause: Throwable, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

  26. def error(cause: Throwable, template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

  27. def error(cause: Throwable, template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

    See also

    LoggingAdapter

  28. def error(cause: Throwable, message: String): Unit

    Log message at error level, including the exception that caused the error.

    Log message at error level, including the exception that caused the error.

    See also

    LoggingAdapter

  29. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def format(t: String, arg: Any*): String
  31. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to StringFormat[LoggingAdapter] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  32. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

  35. def info(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

  36. def info(template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

  37. def info(template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

    See also

    LoggingAdapter

  38. def info(message: String): Unit

    Log message at info level.

    Log message at info level.

    See also

    LoggingAdapter

  39. final def isEnabled(level: LogLevel): Boolean

    returns

    true if the specified log level is enabled

  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

  42. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

  43. def log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

  44. def log(level: LogLevel, template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

  45. def log(level: LogLevel, message: String): Unit

    Log message at the specified log level.

  46. def mdc: Logging.MDC
  47. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyLog(level: LogLevel, message: String): Unit
  51. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  56. def warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

  57. def warning(template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

  58. def warning(template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

  59. def warning(template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.

    See also

    LoggingAdapter

  60. def warning(message: String): Unit

    Log message at warning level.

    Log message at warning level.

    See also

    LoggingAdapter

  61. def [B](y: B): (LoggingAdapter, B)
    Implicit
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from LoggingAdapter to any2stringadd[LoggingAdapter]

Inherited by implicit conversion StringFormat from LoggingAdapter to StringFormat[LoggingAdapter]

Inherited by implicit conversion Ensuring from LoggingAdapter to Ensuring[LoggingAdapter]

Inherited by implicit conversion ArrowAssoc from LoggingAdapter to ArrowAssoc[LoggingAdapter]

Ungrouped