ContextPairs

open class 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

Types

Link copied to clipboard
open inner class Pairs<T>
Callback used to add pairs.

Functions

Link copied to clipboard
open fun <T> flat(delimeter: 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).