Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 522 Bytes

File metadata and controls

19 lines (12 loc) · 522 Bytes

Module kotlinx-coroutines-slf4j

Integration with SLF4J MDC.

Example

Extends a given Coroutine context so that the SLF4J MDC context is passed into the coroutine.

MDC.put("kotlin", "rocks") // put a value into the MDC context

launch(MDCContext(CommonPool)) {
   logger.info { "..." }   // the MDC context will contain the mapping here
}

Package kotlinx.coroutines.experimental.slf4j

Integration with SLF4J MDC.