putLogContext

fun putLogContext(key: String, value: Any?)

Add a key-value pair to the current thread's context.

If key already exists, its value is overwritten. The entry persists until explicitly removed via removeLogContext or clearLogContext.

Since

2.0.0

Parameters

key

The context key.

value

The context value. May be null.