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
- Alphabetic
- By Inheritance
- DiagnosticLoggingAdapter
- LoggingAdapter
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- type MDC = Map[String, Any]
- Definition Classes
- LoggingAdapter
Abstract Value Members
- abstract def isDebugEnabled: Boolean
- Definition Classes
- LoggingAdapter
- abstract def isErrorEnabled: Boolean
- Definition Classes
- LoggingAdapter
- abstract def isInfoEnabled: Boolean
- Definition Classes
- LoggingAdapter
- abstract def isWarningEnabled: Boolean
- Definition Classes
- LoggingAdapter
- abstract def notifyDebug(message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
- abstract def notifyError(cause: Throwable, message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
- abstract def notifyError(message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
- abstract def notifyInfo(message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
- abstract def notifyWarning(message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toany2stringadd[DiagnosticLoggingAdapter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (DiagnosticLoggingAdapter, B)
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toArrowAssoc[DiagnosticLoggingAdapter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearMDC(): Unit
Clear all entries in the MDC
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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
- 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
- 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
- def debug(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- def debug(message: String): Unit
Log message at debug level.
Log message at debug level.
- Definition Classes
- LoggingAdapter
- See also
- def ensuring(cond: (DiagnosticLoggingAdapter) => Boolean, msg: => Any): DiagnosticLoggingAdapter
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toEnsuring[DiagnosticLoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (DiagnosticLoggingAdapter) => Boolean): DiagnosticLoggingAdapter
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toEnsuring[DiagnosticLoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): DiagnosticLoggingAdapter
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toEnsuring[DiagnosticLoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): DiagnosticLoggingAdapter
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toEnsuring[DiagnosticLoggingAdapter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- def error(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- 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
- 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
- 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
- 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
- def error(cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- 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
- def format(t: String, arg: Any*): String
- Definition Classes
- LoggingAdapter
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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
- 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
- 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
- def info(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- def info(message: String): Unit
Log message at info level.
Log message at info level.
- Definition Classes
- LoggingAdapter
- See also
- final def isEnabled(level: LogLevel): Boolean
- returns
true if the specified log level is enabled
- Definition Classes
- LoggingAdapter
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- 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
- def log(level: LogLevel, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- def log(level: LogLevel, message: String): Unit
Log message at the specified log level.
Log message at the specified log level.
- Definition Classes
- LoggingAdapter
- 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. - 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
- DiagnosticLoggingAdapter → LoggingAdapter
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyLog(level: LogLevel, message: String): Unit
- Definition Classes
- LoggingAdapter
- def notifyWarning(cause: Throwable, message: String): Unit
- Attributes
- protected
- Definition Classes
- LoggingAdapter
- 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. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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
- 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
- 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
- def warning(template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- def warning(message: String): Unit
Log message at warning level.
Log message at warning level.
- Definition Classes
- LoggingAdapter
- See also
- 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
- 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
- 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
- def warning(cause: Throwable, template: String, arg1: Any): Unit
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- Definition Classes
- LoggingAdapter
- See also
- 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
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toStringFormat[DiagnosticLoggingAdapter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (DiagnosticLoggingAdapter, B)
- Implicit
- This member is added by an implicit conversion from DiagnosticLoggingAdapter toArrowAssoc[DiagnosticLoggingAdapter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.