t

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DiagnosticLoggingAdapter
  2. LoggingAdapter
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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

Concrete Value Members

  1. def clearMDC(): Unit

    Clear all entries in the MDC

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

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

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

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

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  6. def debug(message: String): Unit

    Log message at debug level.

    Log message at debug level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

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

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

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

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

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

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

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

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

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

  17. def format(t: String, arg: Any*): String
    Definition Classes
    LoggingAdapter
  18. 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

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

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

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

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

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  23. def info(message: String): Unit

    Log message at info level.

    Log message at info level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

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

    returns

    true if the specified log level is enabled

    Definition Classes
    LoggingAdapter
  25. 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
  26. 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
  27. 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
  28. 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.

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

    Log message at the specified log level.

    Log message at the specified log level.

    Definition Classes
    LoggingAdapter
  30. 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.

  31. 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
  32. final def notifyLog(level: LogLevel, message: String): Unit
    Definition Classes
    LoggingAdapter
  33. 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.

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

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

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

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

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  38. def warning(message: String): Unit

    Log message at warning level.

    Log message at warning level.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  39. def warning(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

  40. def warning(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

  41. def warning(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

  42. def warning(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.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter

  43. def warning(cause: Throwable, message: String): Unit

    Log message at warning level, including the exception that indicated the warning.

    Log message at warning level, including the exception that indicated the warning.

    Definition Classes
    LoggingAdapter
    See also

    LoggingAdapter