You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
4 months ago
..
api v811_spc009_project 4 months ago
src v811_spc009_project 4 months ago
test v811_spc009_project 4 months ago
test-resources v811_spc009_project 4 months ago
README.md v811_spc009_project 4 months ago
build.gradle.kts v811_spc009_project 4 months ago
package.list v811_spc009_project 4 months ago

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.