public interface LogDiagnosticsConfigurator
Modifier and Type | Method and Description |
---|---|
void |
cleanUpContext()
Clean the logging context for the current thread.
|
void |
cleanUpContext(Collection<String> keys)
Cleans specified keys from the logging context.
|
void |
configureContext(Map<String,String> diagCtx)
Configure logging context for the current thread.
|
Map<String,String> |
getContext()
Retrieve the logging context for the current thread
(
Thread.currentThread() ). |
void configureContext(Map<String,String> diagCtx)
diagCtx
- log diagnostics contextvoid cleanUpContext()
WARNING: this will clear the while underlying storage of the context, e.g. the slf4j MDC. It is possible that other data is stored in that storage, which is not supposed to be cleared. Use this method with caution, the vAPI infrastructure will never invoke it.
void cleanUpContext(Collection<String> keys)
keys
- the keys to be cleaned; must not be null
Map<String,String> getContext()
Thread.currentThread()
).
The result can be used to transfer the logging context to another thread, which continues the execution of the logical operation
Map
representing the log diagnostics contextCopyright © 2015. All Rights Reserved.