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 5bc77a0 commit 4366fc3Copy full SHA for 4366fc3
src/nativeMain/kotlin/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.kt
@@ -23,6 +23,12 @@ internal actual object KLoggerNameResolver {
23
// Fallback for top-level loggers: Parse the stack trace string array.
24
val stackTrace: Array<String> = Throwable().getStackTrace()
25
26
+ // START: Diagnostic code
27
+ println("--- KOTLIN-LOGGING DIAGNOSTIC: STACK TRACE ---")
28
+ stackTrace.forEach { println(it) }
29
+ println("--- END DIAGNOSTIC ---")
30
+ // END: Diagnostic code
31
+
32
// Find the first frame outside of the logging framework's internal machinery.
33
val callerFrame =
34
stackTrace.firstOrNull {
0 commit comments