ContextPairs
Helper that can be used to add JSON pairs from context data (typically the logger MDC) in the correct location (or drop them altogether).
Author
Phillip Webb
Since
3.5.0
Functions
Link copied to clipboard
open fun <T> flat(delimeter: String, pairs: Consumer<ContextPairs.Pairs<T>>): BiConsumer<T, BiConsumer<String, Any>>
open fun <T> flat(joiner: BinaryOperator<String>, pairs: Consumer<ContextPairs.Pairs<T>>): BiConsumer<T, BiConsumer<String, Any>>
Add pairs using flat naming.
Link copied to clipboard
Add pairs using nested naming (for example as used in ECS).