We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f15b81 commit 7cfb001Copy full SHA for 7cfb001
kotlin-logging/src/main/kotlin/com/baeldung/logging/LoggingContext.kt
@@ -1,12 +1,12 @@
1
package com.baeldung.logging
2
3
-import mu.KotlinLogging
4
-import mu.withLoggingContext
+import io.github.oshai.kotlinlogging.KotlinLogging
+import io.github.oshai.kotlinlogging.withLoggingContext
5
6
private val logger = KotlinLogging.logger {}
7
8
fun main() {
9
withLoggingContext("user" to "Baeldung") {
10
logger.info { "Log with MDC" }
11
}
12
-}
+}
0 commit comments