Package org.apache.pekko.event
Interface DiagnosticLoggingAdapter
- All Superinterfaces:
LoggingAdapter
- All Known Implementing Classes:
DiagnosticMarkerBusLoggingAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearMDC()Clear all entries in the MDCgetMDC()Java API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured.mdc()Scala API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured.voidScala API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended.voidJava API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended.Methods inherited from interface org.apache.pekko.event.LoggingAdapter
debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, format, format1, formatImpl, info, info, info, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, log, log, log, log, log, notifyDebug, notifyError, notifyError, notifyInfo, notifyLog, notifyWarning, notifyWarning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning
-
Method Details
-
_mdc_$eq
-
clearMDC
void clearMDC()Clear all entries in the MDC -
getMDC
Java API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris 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
-
mdc
Scala API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured. Visit Logback Docs: MDC for more information.- Specified by:
mdcin interfaceLoggingAdapter- Returns:
- A Map containing the MDC values added by the application, or empty Map if no value was added.
-
mdc
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 whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured. Visit Logback Docs: MDC for more information. -
setMDC
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 whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured. Visit Logback Docs: MDC for more information.
-