Clear all entries in the MDC.
Clear all entries in the MDC.
org.slf4j.spi.MDCAdapter#clear
Get the context identified by the key parameter.
Get the context identified by the key parameter. The key parameter cannot be null.
the string value identified by the key parameter.
org.slf4j.spi.MDCAdapter#get
Return a copy of the current thread's context map, with keys and values of type String.
Return a copy of the current thread's context map, with keys and values of type String. Returned value may be null.
A copy of the current thread's context map. May be null.
org.slf4j.spi.MDCAdapter#getCopyOfContextMap
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map.
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it.
If the current thread does not have a context map it is created as a side effect of this call.
org.slf4j.spi.MDCAdapter#put
Remove the the context identified by the key parameter.
Remove the the context identified by the key parameter. The key parameter cannot be null. This method does nothing if there is no previous value associated with key.
org.slf4j.spi.MDCAdapter#remove
Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter.
Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter. The context map parameter must only contain keys and values of type String.
must contain only keys and values of type String
org.slf4j.spi.MDCAdapter#setContextMap
Implementation of the org.slf4j.spi.MDCAdapter which stores the backing map as a com.twitter.finagle.context.LocalContext via a com.twitter.finagle.context.Contexts.local.
if access to the org.slf4j.MDC is done without first calling com.twitter.inject.logging.MDCInitializer.let these operations are all effectively no-ops.
,Users are not expected to interact with this MDCAdapter directly. Users should use the framework MDC API, via com.twitter.inject.logging.MDCInitializer.
com.twitter.finagle.context.LocalContext
com.twitter.finagle.context.Contexts.local
com.twitter.inject.logging.MDCInitializer