akka.event

DiagnosticLoggingAdapter

trait DiagnosticLoggingAdapter extends LoggingAdapter

LoggingAdapter extension which adds MDC support. Only recommended to be used within Actors as it isn't thread safe.

Source
Logging.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DiagnosticLoggingAdapter
  2. LoggingAdapter
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type MDC = Map[String, Any]

    Definition Classes
    LoggingAdapter

Abstract Value Members

  1. abstract def isDebugEnabled: Boolean

    Definition Classes
    LoggingAdapter
  2. abstract def isErrorEnabled: Boolean

    Definition Classes
    LoggingAdapter
  3. abstract def isInfoEnabled: Boolean

    Definition Classes
    LoggingAdapter
  4. abstract def isWarningEnabled: Boolean

    Definition Classes
    LoggingAdapter
  5. abstract def notifyDebug(message: String): Unit

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

    Attributes
    protected
    Definition Classes
    LoggingAdapter
  7. abstract def notifyError(message: String): Unit

    Attributes
    protected
    Definition Classes
    LoggingAdapter
  8. abstract def notifyInfo(message: String): Unit

    Attributes
    protected
    Definition Classes
    LoggingAdapter
  9. abstract def notifyWarning(message: String): Unit

    Attributes
    protected
    Definition Classes
    LoggingAdapter

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (DiagnosticLoggingAdapter, B)

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to ArrowAssoc[DiagnosticLoggingAdapter] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clearMDC(): Unit

    Clear all entries in the MDC

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  15. def debug(message: String): Unit

    Log message at debug level.

    Log message at debug level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  16. def ensuring(cond: (DiagnosticLoggingAdapter) ⇒ Boolean, msg: ⇒ Any): DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (DiagnosticLoggingAdapter) ⇒ Boolean): DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  26. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  27. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  28. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  31. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def format(t: String, arg: Any*): String

    Definition Classes
    LoggingAdapter
  34. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def getMDC: Map[String, Any]

    Java API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured.

    Java API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured. Visit Logback Docs: MDC for more information. Note tha it returns a COPY of the actual MDC values. You cannot modify any value by changing the returned Map. Code like the following won't have any effect unless you set back the modified Map.

      Map mdc = log.getMDC();
      mdc.put("key", value);
      // NEEDED
      log.setMDC(mdc);
    

    returns

    A copy of the actual MDC values

  37. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  38. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  42. def info(message: String): Unit

    Log message at info level.

    Log message at info level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    returns

    true if the specified log level is enabled

    Definition Classes
    LoggingAdapter
  44. final def isInstanceOf[T0]: Boolean

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

    Message template with 4 replacement arguments.

    Message template with 4 replacement arguments.

    Definition Classes
    LoggingAdapter
  46. def log(level: LogLevel, template: String, arg1: Any, arg2: Any, arg3: Any): Unit

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    Definition Classes
    LoggingAdapter
  47. def log(level: LogLevel, template: String, arg1: Any, arg2: Any): Unit

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
  48. def log(level: LogLevel, template: String, arg1: Any): Unit

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
  49. def log(level: LogLevel, message: String): Unit

    Log message at the specified log level.

    Log message at the specified log level.

    Definition Classes
    LoggingAdapter
  50. def mdc(mdc: MDC): Unit

    Scala API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended.

    Scala API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended. These values can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured. Visit Logback Docs: MDC for more information.

  51. def mdc: MDC

    Scala API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured.

    Scala API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured. Visit Logback Docs: MDC for more information.

    returns

    A Map containing the MDC values added by the application, or empty Map if no value was added.

    Definition Classes
    DiagnosticLoggingAdapterLoggingAdapter
  52. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  53. final def notify(): Unit

    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  55. final def notifyLog(level: LogLevel, message: String): Unit

    Definition Classes
    LoggingAdapter
  56. def setMDC(jMdc: Map[String, Any]): Unit

    Java API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended.

    Java API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended. These values can be used in PatternLayout when akka.event.slf4j.Slf4jLogger is configured. Visit Logback Docs: MDC for more information.

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

    Definition Classes
    AnyRef
  58. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. 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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 3 replacement arguments.

    Message template with 3 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 2 replacement arguments.

    Message template with 2 replacement arguments.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    Message template with 1 replacement argument.

    Message template with 1 replacement argument.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  66. def warning(message: String): Unit

    Log message at warning level.

    Log message at warning level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  67. def [B](y: B): (DiagnosticLoggingAdapter, B)

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (diagnosticLoggingAdapter: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (diagnosticLoggingAdapter: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to ArrowAssoc[DiagnosticLoggingAdapter] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (diagnosticLoggingAdapter: ArrowAssoc[DiagnosticLoggingAdapter]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: DiagnosticLoggingAdapter

    Implicit information
    This member is added by an implicit conversion from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (diagnosticLoggingAdapter: Ensuring[DiagnosticLoggingAdapter]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from LoggingAdapter

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DiagnosticLoggingAdapter to StringAdd

Inherited by implicit conversion any2stringfmt from DiagnosticLoggingAdapter to StringFormat

Inherited by implicit conversion any2ArrowAssoc from DiagnosticLoggingAdapter to ArrowAssoc[DiagnosticLoggingAdapter]

Inherited by implicit conversion any2Ensuring from DiagnosticLoggingAdapter to Ensuring[DiagnosticLoggingAdapter]

Ungrouped