From 92da7956e63d990ed971d45a34b9fa40c954667f Mon Sep 17 00:00:00 2001 From: Steven Barclay Date: Thu, 2 May 2024 00:29:40 +0200 Subject: [PATCH] Tidy logback files & add space back to log pattern Uniformise the log patterns somewhat, by making the 'Logger' classname field width either 15 for the seednode & statsnode, or 40 for the other applications (lengthened from 30 in a few cases). Also clean up the logback XML files somewhat, in particular removing references to the old Thali (thaliproject/Tor_Onion_Proxy_Library) Tor library, which was replaced years ago with our own fork of NetLayer (https://github.com/cd2357/netlayer). Finally, add a missing space back to the log pattern for bisq-desktop, to prevent DEBUG, ERROR or TRACE lines appearing as follows: ... [JavaFX Application Thread] ERRORb.c.s.CommonSetup: ... (It isn't clear whether this recently introduced behaviour was really intentional, though it did prevent two consecutive spaces appearing in the majority INFO log lines.) --- apitest/src/main/resources/logback.xml | 2 +- apitest/src/test/resources/logback.xml | 2 +- cli/src/main/resources/logback.xml | 3 +-- daemon/src/main/resources/logback.xml | 3 +-- desktop/src/main/resources/logback.xml | 7 ++++--- seednode/src/main/resources/logback.xml | 3 --- statsnode/src/main/resources/logback.xml | 3 --- 7 files changed, 8 insertions(+), 15 deletions(-) diff --git a/apitest/src/main/resources/logback.xml b/apitest/src/main/resources/logback.xml index 28279faa11..16f6cc07ee 100644 --- a/apitest/src/main/resources/logback.xml +++ b/apitest/src/main/resources/logback.xml @@ -8,7 +8,7 @@ --> - %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n) + %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{40}: %msg %xEx%n) diff --git a/apitest/src/test/resources/logback.xml b/apitest/src/test/resources/logback.xml index 28279faa11..16f6cc07ee 100644 --- a/apitest/src/test/resources/logback.xml +++ b/apitest/src/test/resources/logback.xml @@ -8,7 +8,7 @@ --> - %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n) + %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{40}: %msg %xEx%n) diff --git a/cli/src/main/resources/logback.xml b/cli/src/main/resources/logback.xml index bc8edf0221..4c5638f7ac 100644 --- a/cli/src/main/resources/logback.xml +++ b/cli/src/main/resources/logback.xml @@ -2,7 +2,7 @@ - %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n) + %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{40}: %msg %xEx%n) @@ -11,5 +11,4 @@ - diff --git a/daemon/src/main/resources/logback.xml b/daemon/src/main/resources/logback.xml index bc8edf0221..4c5638f7ac 100644 --- a/daemon/src/main/resources/logback.xml +++ b/daemon/src/main/resources/logback.xml @@ -2,7 +2,7 @@ - %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n) + %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{40}: %msg %xEx%n) @@ -11,5 +11,4 @@ - diff --git a/desktop/src/main/resources/logback.xml b/desktop/src/main/resources/logback.xml index 144f2cb128..9009673b34 100644 --- a/desktop/src/main/resources/logback.xml +++ b/desktop/src/main/resources/logback.xml @@ -2,13 +2,14 @@ - %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level%logger{40}: %msg %xEx%n) + %highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{40}: %msg %xEx%n) - - + + + diff --git a/seednode/src/main/resources/logback.xml b/seednode/src/main/resources/logback.xml index 914b9d3d4b..45e46b3117 100644 --- a/seednode/src/main/resources/logback.xml +++ b/seednode/src/main/resources/logback.xml @@ -9,7 +9,4 @@ - - - diff --git a/statsnode/src/main/resources/logback.xml b/statsnode/src/main/resources/logback.xml index 914b9d3d4b..45e46b3117 100644 --- a/statsnode/src/main/resources/logback.xml +++ b/statsnode/src/main/resources/logback.xml @@ -9,7 +9,4 @@ - - -