Trait

akka.event

LoggingAdapter

Related Doc: package event

Permalink

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
Known Subclasses
Type Hierarchy
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]

    Permalink

Abstract Value Members

  1. abstract def isDebugEnabled: Boolean

    Permalink
  2. abstract def isErrorEnabled: Boolean

    Permalink
  3. abstract def isInfoEnabled: Boolean

    Permalink
  4. abstract def isWarningEnabled: Boolean

    Permalink
  5. abstract def notifyDebug(message: String): Unit

    Permalink
    Attributes
    protected
  6. abstract def notifyError(cause: Throwable, message: String): Unit

    Permalink
    Attributes
    protected
  7. abstract def notifyError(message: String): Unit

    Permalink
    Attributes
    protected
  8. abstract def notifyInfo(message: String): Unit

    Permalink
    Attributes
    protected
  9. abstract def notifyWarning(message: String): Unit

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    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)

    Permalink
    Implicit information
    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

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def debug(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Permalink

    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

    Permalink

    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

    Permalink

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    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

    Permalink

    Log message at debug level.

    Log message at debug level.

    See also

    LoggingAdapter

  13. def ensuring(cond: (LoggingAdapter) ⇒ Boolean, msg: ⇒ Any): LoggingAdapter

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def error(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Permalink

    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

    Permalink

    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

    Permalink

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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 format(t: String, arg: Any*): String

    Permalink
  30. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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()
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  33. def info(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Permalink

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    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

  37. def info(message: String): Unit

    Permalink

    Log message at info level.

    Log message at info level.

    See also

    LoggingAdapter

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

    Permalink

    returns

    true if the specified log level is enabled

  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Permalink

    Message template with 4 replacement arguments.

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

    Permalink

    Message template with 3 replacement arguments.

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

    Permalink

    Message template with 2 replacement arguments.

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

    Permalink

    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.

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

    Permalink

    Log message at the specified log level.

  45. def mdc: Logging.MDC

    Permalink
  46. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  47. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  48. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  49. final def notifyLog(level: LogLevel, message: String): Unit

    Permalink
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  52. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def warning(template: String, arg1: Any, arg2: Any, arg3: Any, arg4: Any): Unit

    Permalink

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    See also

    LoggingAdapter

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

    Permalink

    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

  59. def warning(message: String): Unit

    Permalink

    Log message at warning level.

    Log message at warning level.

    See also

    LoggingAdapter

  60. def [B](y: B): (LoggingAdapter, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LoggingAdapter to ArrowAssoc[LoggingAdapter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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