public class KotlinLoggingMDCKt
public static <T> T withLoggingContext(@NotNull kotlin.Pair<java.lang.String,java.lang.String> pair, @NotNull kotlin.jvm.functions.Function0<? extends T> body)
Use a pair in MDC context. Example:
withLoggingContext("userId" to userId) {
doSomething()
}
public static <T> T withLoggingContext(@NotNull kotlin.Pair[] pair, @NotNull kotlin.jvm.functions.Function0<? extends T> body)
Use a vary number of pairs in MDC context. Example:
withLoggingContext("userId" to userId) {
doSomething()
}
public static <T> T withLoggingContext(@NotNull java.util.Map<java.lang.String,java.lang.String> map, @NotNull kotlin.jvm.functions.Function0<? extends T> body)
Use a map in MDC context. Example:
withLoggingContext(mapOf("userId" to userId)) {
doSomething()
}