public interface LoggerContext
Modifier and Type | Method and Description |
---|---|
void |
addDiagnosticContext(java.lang.String name,
java.lang.String value)
Adds a specific Logger Context to the current thread.
|
void |
removeDiagnosticContext(java.lang.String name)
Removes a specific Logger Context from the current thread.
|
void addDiagnosticContext(java.lang.String name, java.lang.String value)
name
- name of the contextvalue
- the value for the given name.java.lang.IllegalArgumentException
- when name equals nullvoid removeDiagnosticContext(java.lang.String name)
name
- name of the contextvalue
- the value for the given name.