Package org.apache.pekko.event
Interface DiagnosticLoggingAdapter
- 
- All Superinterfaces:
- LoggingAdapter
 - All Known Implementing Classes:
- DiagnosticMarkerBusLoggingAdapter
 
 public interface DiagnosticLoggingAdapter extends LoggingAdapter 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description void_mdc_$eq(scala.collection.immutable.Map<java.lang.String,java.lang.Object> x$1)voidclearMDC()Clear all entries in the MDCjava.util.Map<java.lang.String,java.lang.Object>getMDC()Java API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured.scala.collection.immutable.Map<java.lang.String,java.lang.Object>mdc()Scala API: Mapped Diagnostic Context for application defined values which can be used in PatternLayout whenorg.apache.pekko.event.slf4j.Slf4jLoggeris configured.voidmdc(scala.collection.immutable.Map<java.lang.String,java.lang.Object> mdc)Scala API: Sets the values to be added to the MDC (Mapped Diagnostic Context) before the log is appended.voidsetMDC(java.util.Map<java.lang.String,java.lang.Object> jMdc)Java 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.LoggingAdapterdebug, 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 Detail- 
_mdc_$eqvoid _mdc_$eq(scala.collection.immutable.Map<java.lang.String,java.lang.Object> x$1) 
 - 
clearMDCvoid clearMDC() Clear all entries in the MDC
 - 
getMDCjava.util.Map<java.lang.String,java.lang.Object> 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
 
 - 
mdcscala.collection.immutable.Map<java.lang.String,java.lang.Object> 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 interface- LoggingAdapter
- Returns:
- A Map containing the MDC values added by the application, or empty Map if no value was added.
 
 - 
mdcvoid mdc(scala.collection.immutable.Map<java.lang.String,java.lang.Object> 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.
 - 
setMDCvoid setMDC(java.util.Map<java.lang.String,java.lang.Object> jMdc) 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.
 
- 
 
-