Implemented printing at least exception

This commit is contained in:
dankito 2022-02-13 22:59:43 +01:00
parent ec9bfa8168
commit e5f9371e56
1 changed files with 4 additions and 0 deletions

View File

@ -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
}