public class DefaultLogContext extends Object implements LogContext
Constructor and Description |
---|
DefaultLogContext() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Cleanup all diagnostic data from this logger context.
|
void |
put(String name,
Object value)
Put named diagnostic context data on logger related to current thread.
|
public void put(String name, Object value)
LogContext
LogContext.clear()
is called on current thread. Override value if named diagnostic
data already exists.
If given name
is null or empty this method silently does nothing and if value
is null
remove named diagnostic context data.
put
in interface LogContext
name
- name for diagnostic context data, not null,value
- diagnostic context value, possible null.public void clear()
LogContext
clear
in interface LogContext
Copyright © 2020. All rights reserved.