Class PassThroughMDCLoggingContextHandler
java.lang.Object
de.hybris.platform.util.logging.context.PassThroughMDCLoggingContextHandler
- All Implemented Interfaces:
LoggingContextHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove all values from the contextGets the context value identified by the key parameterGets an copy of this current context mapvoidPut a value into the current context map.putCloseable(String key, String val) Put a value into the current context map.voidRemoves the context value identified by key parametervoidsetContextMap(Map<String, String> contextMap) Sets current context map to the map passed as parameter.
-
Constructor Details
-
PassThroughMDCLoggingContextHandler
public PassThroughMDCLoggingContextHandler()
-
-
Method Details
-
put
Description copied from interface:LoggingContextHandlerPut a value into the current context map.- Specified by:
putin interfaceLoggingContextHandler- Parameters:
key- - The key to putval- - The value to put associated with key
-
putCloseable
Description copied from interface:LoggingContextHandlerPut a value into the current context map. This method return a Closeable object who can remove key when close is called.- Specified by:
putCloseablein interfaceLoggingContextHandler- Parameters:
key- - The key to putval- - The value to put associated with key- Returns:
- a Closeable who can remove key when close is called
-
get
Description copied from interface:LoggingContextHandlerGets the context value identified by the key parameter- Specified by:
getin interfaceLoggingContextHandler- Parameters:
key- - The key to locate- Returns:
- The value associated with the key
-
remove
Description copied from interface:LoggingContextHandlerRemoves the context value identified by key parameter- Specified by:
removein interfaceLoggingContextHandler- Parameters:
key- - The key to remove
-
clear
public void clear()Description copied from interface:LoggingContextHandlerRemove all values from the context- Specified by:
clearin interfaceLoggingContextHandler
-
getCopyOfContextMap
Description copied from interface:LoggingContextHandlerGets an copy of this current context map- Specified by:
getCopyOfContextMapin interfaceLoggingContextHandler- Returns:
- copy of the context.
-
setContextMap
Description copied from interface:LoggingContextHandlerSets current context map to the map passed as parameter.- Specified by:
setContextMapin interfaceLoggingContextHandler- Parameters:
contextMap- the context map to use.
-