even better logging messages

This commit is contained in:
Aria Moradi 2021-03-27 19:40:47 +04:30
parent 95c437efd5
commit 5a75f26791
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ fun applicationSetup() {
// set application wide logging level
if (serverConfig.debugLogsEnabled) {
// (mu.KotlinLogging.logger("ir.armor.tachidesk").underlyingLogger as ch.qos.logback.classic.Logger).level = Level.DEBUG
(mu.KotlinLogging.logger(org.slf4j.Logger.ROOT_LOGGER_NAME).underlyingLogger as ch.qos.logback.classic.Logger).level = Level.DEBUG
}

View File

@ -4,7 +4,7 @@
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %logger - %msg%n</pattern>
</encoder>
</appender>