Added thread name to default log output

This commit is contained in:
dankito 2020-07-15 22:34:52 +02:00
parent a327291757
commit e4b64559c4
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package net.dankito.utils.multiplatform.log
import net.dankito.utils.multiplatform.Date
import net.dankito.utils.multiplatform.DateFormatter
import net.dankito.utils.multiplatform.Thread
abstract class LoggerBase(
@ -98,7 +99,7 @@ abstract class LoggerBase(
protected open fun createLogOutput(level: LogLevel, message: String): String {
return "${DateFormatter.format(Date())} [$level] $name - $message"
return "${DateFormatter.format(Date())} [$level] ${Thread.current.threadName} $name - $message"
}
}