From d711ffd7bb3c86f5911d335faea5910c9df58398 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Thu, 21 Jan 2021 16:27:14 +0100 Subject: [PATCH] feat: update logback format to include milliseconds & align messages --- helpers/test-client/src/logback-tests.xml | 9 ++++----- server/configuration/logback-production.xml | 8 +++----- server/configuration/logback-release.xml | 6 +++--- server/configuration/logback.xml | 2 +- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/helpers/test-client/src/logback-tests.xml b/helpers/test-client/src/logback-tests.xml index 7212ed86b..e781750a3 100644 --- a/helpers/test-client/src/logback-tests.xml +++ b/helpers/test-client/src/logback-tests.xml @@ -1,13 +1,12 @@ - - ${LOG_DIRECTORY:-log}/game_server.log + ${LOG_DIRECTORY:-log}/testclient.log - ${LOG_DIRECTORY:-log}/game_server.%i.log.gz + ${LOG_DIRECTORY:-log}/testclient.%i.log.gz 1 5 @@ -18,12 +17,12 @@ - %d{HH:mm:ss} %-5level %logger{36} - %msg%n + %d{HH:mm:ss.SSS} %-5level %36logger{36} - %msg%n - %d{HH:mm:ss} %-5level %logger{36} - %msg%n + %.-11d{HH:mm:ss.SSS} %-5level %36logger{36} - %msg%n diff --git a/server/configuration/logback-production.xml b/server/configuration/logback-production.xml index 486240bec..068c9a500 100644 --- a/server/configuration/logback-production.xml +++ b/server/configuration/logback-production.xml @@ -2,11 +2,9 @@ - - - %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n - - + + %d{yy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %36logger{36} - %msg%n + diff --git a/server/configuration/logback-release.xml b/server/configuration/logback-release.xml index d76519181..9a0ffdc62 100644 --- a/server/configuration/logback-release.xml +++ b/server/configuration/logback-release.xml @@ -18,12 +18,12 @@ - %d{HH:mm:ss} %-5level %logger{36} - %msg%n + %d{HH:mm:ss.SSS} %-5level %36logger{36} - %msg%n - - %d{HH:mm:ss} %-5level %logger{36} - %msg%n + + %.-11d{HH:mm:ss.SSS} %-5level %36logger{36} - %msg%n diff --git a/server/configuration/logback.xml b/server/configuration/logback.xml index 6a4ea216f..f5546db7e 100644 --- a/server/configuration/logback.xml +++ b/server/configuration/logback.xml @@ -4,7 +4,7 @@ - %d{HH:mm:ss} %-5level %logger{36} - %msg%n + %d{HH:mm:ss.SSS} %-5level %36logger{36} - %msg%n