From 02449a6cb9e00365ded480af4ac7d4f6444feafd Mon Sep 17 00:00:00 2001 From: gtl <2949451835@qq.com> Date: Wed, 22 May 2024 20:24:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0=E9=93=BE=E8=B7=AF?= =?UTF-8?q?=E8=BF=BD=E8=B8=AA=E7=9A=84=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-auth/src/main/resources/bootstrap.yml | 2 +- .../src/main/resources/logback-spring.xml | 63 +++++++++++++++++++ ruoyi-auth/src/main/resources/logback.xml | 31 +-------- .../src/main/resources/bootstrap.yml | 2 +- .../src/main/resources/logback-spring.xml | 63 +++++++++++++++++++ .../src/main/resources/logback.xml | 31 +-------- 6 files changed, 130 insertions(+), 62 deletions(-) create mode 100644 ruoyi-auth/src/main/resources/logback-spring.xml create mode 100644 ruoyi-modules/ruoyi-system/src/main/resources/logback-spring.xml diff --git a/ruoyi-auth/src/main/resources/bootstrap.yml b/ruoyi-auth/src/main/resources/bootstrap.yml index 4f55968..74a77c8 100644 --- a/ruoyi-auth/src/main/resources/bootstrap.yml +++ b/ruoyi-auth/src/main/resources/bootstrap.yml @@ -36,4 +36,4 @@ spring: logging: level: com.ruoyi.auth: DEBUG - config: classpath:logback.xml + config: classpath:logback-spring.xml diff --git a/ruoyi-auth/src/main/resources/logback-spring.xml b/ruoyi-auth/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..09d8583 --- /dev/null +++ b/ruoyi-auth/src/main/resources/logback-spring.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + INFO + + + + ${CONSOLE_LOG_PATTERN} + utf8 + + + + + + 192.168.44.128:5044 + + + + + UTC + + + + { + "severity": "%level", + "service": "${springAppName:-}", + "trace": "%X{X-B3-TraceId:-}", + "span": "%X{X-B3-SpanId:-}", + "exportable": "%X{X-Span-Export:-}", + "pid": "${PID:-}", + "thread": "%thread", + "class": "%logger{40}", + "rest": "%message" + } + + + + + + + + + + + + diff --git a/ruoyi-auth/src/main/resources/logback.xml b/ruoyi-auth/src/main/resources/logback.xml index 8d5b6de..4c01154 100644 --- a/ruoyi-auth/src/main/resources/logback.xml +++ b/ruoyi-auth/src/main/resources/logback.xml @@ -56,35 +56,7 @@ DENY - - - - 192.168.44.128:5044 - - - - - UTC - - - - { - "severity": "%level", - "service": "${springAppName:-}", - "trace": "%X{X-B3-TraceId:-}", - "span": "%X{X-B3-SpanId:-}", - "exportable": "%X{X-Span-Export:-}", - "pid": "${PID:-}", - "thread": "%thread", - "class": "%logger{40}", - "rest": "%message" - } - - - - - + @@ -92,7 +64,6 @@ - diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml index dfb1bdb..831e3ab 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml @@ -36,4 +36,4 @@ spring: logging: level: com.ruoyi.system.mapper: DEBUG - config: classpath:logback.xml + config: classpath:logback-spring.xml diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/logback-spring.xml b/ruoyi-modules/ruoyi-system/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..09d8583 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/logback-spring.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + INFO + + + + ${CONSOLE_LOG_PATTERN} + utf8 + + + + + + 192.168.44.128:5044 + + + + + UTC + + + + { + "severity": "%level", + "service": "${springAppName:-}", + "trace": "%X{X-B3-TraceId:-}", + "span": "%X{X-B3-SpanId:-}", + "exportable": "%X{X-Span-Export:-}", + "pid": "${PID:-}", + "thread": "%thread", + "class": "%logger{40}", + "rest": "%message" + } + + + + + + + + + + + + diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml b/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml index 4e4151c..c16cb09 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml @@ -56,35 +56,7 @@ DENY - - - - 192.168.44.128:5044 - - - - - UTC - - - - { - "severity": "%level", - "service": "${springAppName:-}", - "trace": "%X{X-B3-TraceId:-}", - "span": "%X{X-B3-SpanId:-}", - "exportable": "%X{X-Span-Export:-}", - "pid": "${PID:-}", - "thread": "%thread", - "class": "%logger{40}", - "rest": "%message" - } - - - - - + @@ -92,7 +64,6 @@ -