Interface ContextDataProvider
-
- All Known Implementing Classes:
ThreadContextDataProvider
public interface ContextDataProvider
Source of context data to be added to each log event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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.default StringMap
supplyStringMap()
Returns the context data as a StringMap.
-
-
-
Method Detail
-
supplyContextData
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.- Returns:
- A Map containing the context data or null.
-
supplyStringMap
default StringMap supplyStringMap()
Returns the context data as a StringMap.- Returns:
- the context data in a StringMap.
-
-