|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface MappedDiagnosticContext
This class hides and serves as a substitute for the underlying logging system's MDC (mapped diagnostic context) implementation.
| Method Summary | |
|---|---|
void |
clearMDC()
Clear all entries in the MDC of the underlying implementation. |
String |
getMDC(String key)
Get the context identified by the key parameter. |
Iterator<Map.Entry<String,String>> |
iterator()
A read only iterator delivering all key-value-pairs. |
void |
putMDC(String key,
String val)
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. |
void |
removeMDC(String key)
Remove the the context identified by the key parameter. |
| Method Detail |
|---|
void putMDC(@NotNull
String key,
String val)
key - Key to put for.val - Value to put.@Nullable String getMDC(String key)
key - Key to query.
null
void removeMDC(@NotNull
String key)
key - Key to removevoid clearMDC()
Iterator<Map.Entry<String,String>> iterator()
iterator in interface Iterable<Map.Entry<String,String>>
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||