From d593c83cc8a50a0a170bf2cf8ef51d426246e96d Mon Sep 17 00:00:00 2001 From: Zihlu Wang Date: Sun, 31 Mar 2024 17:09:31 +0800 Subject: [PATCH] refactor: Optimised logging pattern. --- devkit-core/src/main/resources/logback.xml | 20 +++++------ devkit-utils/src/main/resources/logback.xml | 20 +++++------ guid/src/main/resources/logback.xml | 20 +++++------ .../src/main/resources/logback.xml | 34 +++++++++++++++++++ .../src/main/resources/logback.xml | 20 +++++------ .../src/main/resources/logback.xml | 20 +++++------ .../src/main/resources/logback.xml | 34 +++++++++++++++++++ .../src/main/resources/logback.xml | 20 +++++------ webcal/src/main/resources/logback.xml | 20 +++++------ 9 files changed, 124 insertions(+), 84 deletions(-) create mode 100644 property-guard-spring-boot-starter/src/main/resources/logback.xml create mode 100644 simple-jwt-jjwt/src/main/resources/logback.xml diff --git a/devkit-core/src/main/resources/logback.xml b/devkit-core/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/devkit-core/src/main/resources/logback.xml +++ b/devkit-core/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/devkit-utils/src/main/resources/logback.xml b/devkit-utils/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/devkit-utils/src/main/resources/logback.xml +++ b/devkit-utils/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/guid/src/main/resources/logback.xml b/guid/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/guid/src/main/resources/logback.xml +++ b/guid/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/property-guard-spring-boot-starter/src/main/resources/logback.xml b/property-guard-spring-boot-starter/src/main/resources/logback.xml new file mode 100644 index 0000000..46697b9 --- /dev/null +++ b/property-guard-spring-boot-starter/src/main/resources/logback.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + ${COLOURFUL_OUTPUT} + + + + + + \ No newline at end of file diff --git a/simple-jwt-authzero/src/main/resources/logback.xml b/simple-jwt-authzero/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/simple-jwt-authzero/src/main/resources/logback.xml +++ b/simple-jwt-authzero/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/simple-jwt-facade/src/main/resources/logback.xml b/simple-jwt-facade/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/simple-jwt-facade/src/main/resources/logback.xml +++ b/simple-jwt-facade/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/simple-jwt-jjwt/src/main/resources/logback.xml b/simple-jwt-jjwt/src/main/resources/logback.xml new file mode 100644 index 0000000..46697b9 --- /dev/null +++ b/simple-jwt-jjwt/src/main/resources/logback.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + ${COLOURFUL_OUTPUT} + + + + + + \ No newline at end of file diff --git a/simple-jwt-spring-boot-starter/src/main/resources/logback.xml b/simple-jwt-spring-boot-starter/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/simple-jwt-spring-boot-starter/src/main/resources/logback.xml +++ b/simple-jwt-spring-boot-starter/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file diff --git a/webcal/src/main/resources/logback.xml b/webcal/src/main/resources/logback.xml index af1c7a3..46697b9 100644 --- a/webcal/src/main/resources/logback.xml +++ b/webcal/src/main/resources/logback.xml @@ -17,22 +17,18 @@ --> + + - - + - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n + + ${COLOURFUL_OUTPUT} - - - - %date{yyyy-MM-dd HH:mm:ss} [%thread] %highlight(%-5level) %cyan(%logger{50}) : %msg%n - - - - + \ No newline at end of file