David Glasser
04/25/2020, 12:27 AMwithLoggingField("key", "value") {
// maybe do other stuff, maybe this next line is actually in some other function called by this block
<http://log.info|log.info>(...)
}
which, if we're not in a suspend function just does an MDC.put and resets it, but if we are in a suspend function uses kotlinx.coroutines.slf4j.MDCContext to make the MDC context thread-local workJakub Pi
04/25/2020, 3:51 AM