oshai/kotlin-logging

Darwin doesn't log stacktraces

Gaming32 opened this issue · 2 comments

Throwables passed into logging functions on Darwin platforms will not print a stacktrace. There is simply no code that uses the KLoggingEventBuilder.cause on Darwin. This could potentially be resolved with Kotlin's Throwable.stackTraceToString(), which is available on Darwin (and all platforms).

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

oshai commented

Would you like to create a pull request for this?