public class ThreadContextDataProvider extends Object implements ContextDataProvider
Constructor and Description |
---|
ThreadContextDataProvider() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
supplyContextData()
Returns a Map containing context data to be injected into the event or null if no context data is to be added.
|
org.apache.logging.log4j.util.StringMap |
supplyStringMap()
Returns the context data as a StringMap.
|
public ThreadContextDataProvider()
public Map<String,String> supplyContextData()
ContextDataProvider
supplyContextData
in interface ContextDataProvider
public org.apache.logging.log4j.util.StringMap supplyStringMap()
ContextDataProvider
supplyStringMap
in interface ContextDataProvider
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.