@Plugin(name="ctx", category="Lookup") public class ContextMapLookup extends java.lang.Object implements StrLookup
ThreadContext, but users may
configure a custom ContextDataInjector which obtains context data
from some other source.| Modifier and Type | Field and Description |
|---|---|
private ContextDataInjector |
injector |
| Constructor and Description |
|---|
ContextMapLookup() |
| Modifier and Type | Method and Description |
|---|---|
private ReadOnlyStringMap |
currentContextData() |
java.lang.String |
lookup(LogEvent event,
java.lang.String key)
Looks up the value from the ThreadContext Map.
|
java.lang.String |
lookup(java.lang.String key)
Looks up the value from the ThreadContext Map.
|
private final ContextDataInjector injector
public java.lang.String lookup(java.lang.String key)
private ReadOnlyStringMap currentContextData()