withAppendedContext

fun withAppendedContext(keyValue: Pair<String, Any?>, vararg keysAndValues: Pair<String, Any?>): ContextualLogger

Creates a new ContextualLogger that logs the same contextual data with additional contextual data

Return

the new ContextualLogger

Parameters

keyValue

the contextual data to append

keysAndValues

additional contextual data to append