You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log4J 2 has a ThreadContext, which works the same way as SLF4J's MDC. Using the ThreadContext directly with coroutines breaks, but the same approach for an integration that exists for SLF4J can be used for Log4J.
The tests are copied from the SLF4J project, and are only modified to also include verification of stack state, since ThreadContext contains both a Map and a Stack.
Copy file name to clipboardExpand all lines: integration/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ Module name below corresponds to the artifact name in Maven/Gradle.
9
9
*[kotlinx-coroutines-guava](kotlinx-coroutines-guava/README.md) -- integration with Guava [ListenableFuture](https://github.com/google/guava/wiki/ListenableFutureExplained).
10
10
*[kotlinx-coroutines-slf4j](kotlinx-coroutines-slf4j/README.md) -- integration with SLF4J [MDC](https://logback.qos.ch/manual/mdc.html).
11
11
*[kotlinx-coroutines-play-services](kotlinx-coroutines-play-services) -- integration with Google Play Services [Tasks API](https://developers.google.com/android/guides/tasks).
12
+
*[kotlinx-coroutines-log4j](kotlinx-coroutines-log4j/README.md) -- integration with Log4J 2's [ThreadContext](https://logging.apache.org/log4j/2.x/manual/thread-context.html).
Copy file name to clipboardExpand all lines: site/docs/index.md
+1
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Library support for Kotlin coroutines. This reference is a companion to
25
25
|[kotlinx-coroutines-guava](kotlinx-coroutines-guava)| Integration with Guava [ListenableFuture](https://github.com/google/guava/wiki/ListenableFutureExplained)|
26
26
|[kotlinx-coroutines-slf4j](kotlinx-coroutines-slf4j)| Integration with SLF4J [MDC](https://logback.qos.ch/manual/mdc.html)|
27
27
|[kotlinx-coroutines-play-services](kotlinx-coroutines-play-services)| Integration with Google Play Services [Tasks API](https://developers.google.com/android/guides/tasks)|
28
+
|[kotlinx-coroutines-log4j](kotlinx-coroutines-log4j)| Integration with Log4J 2's [ThreadContext](https://logging.apache.org/log4j/2.x/manual/thread-context.html)|
0 commit comments