diff --git a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt index f1440445..1c5143f0 100644 --- a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt +++ b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt @@ -95,6 +95,10 @@ abstract class LoggerBase( } open fun createMessage(exception: Throwable?, message: String, vararg arguments: Any): String { + if (exception != null) { + return "$message: $exception\n${exception.stackTraceToString()}" + } + return message // really, there's not String.format() ?! // TODO: add arguments and exception }