android13/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
api initial 2024-06-22 20:45:49 +08:00
src initial 2024-06-22 20:45:49 +08:00
test initial 2024-06-22 20:45:49 +08:00
test-resources initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
build.gradle.kts initial 2024-06-22 20:45:49 +08:00
package.list initial 2024-06-22 20:45:49 +08:00

README.md

Module kotlinx-coroutines-slf4j

Integration with SLF4J MDC.

Example

Add MDCContext to the coroutine context so that the SLF4J MDC context is captured and passed into the coroutine.

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

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

Package kotlinx.coroutines.slf4j

Integration with SLF4J MDC.