@Plugin(name="ctx", category="Lookup") public class ContextMapLookup extends Object implements StrLookup
ThreadContext
, but users may
configure a custom ContextDataInjector
which obtains context data
from some other source.Constructor and Description |
---|
ContextMapLookup() |
Modifier and Type | Method and Description |
---|---|
String |
lookup(LogEvent event,
String key)
Looks up the value from the ThreadContext Map.
|
String |
lookup(String key)
Looks up the value from the ThreadContext Map.
|
public ContextMapLookup()
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.