From 3ea117dbb06a86fe97ce321104dc7b01ab0f4458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Fri, 10 Jun 2022 14:18:17 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=20ruoyi-seata-server=20=E6=97=A5=E5=BF=97=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/logback-spring.xml | 119 +++++++++++++++--- .../resources/logback/console-appender.xml | 13 -- .../main/resources/logback/file-appender.xml | 69 ---------- 3 files changed, 100 insertions(+), 101 deletions(-) delete mode 100644 ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/console-appender.xml delete mode 100644 ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/file-appender.xml diff --git a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback-spring.xml b/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback-spring.xml index 7d7c2cf2..4e41f53c 100644 --- a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback-spring.xml +++ b/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback-spring.xml @@ -18,24 +18,108 @@ - - - - - - - - + + + + + + + + + + ${console.log.pattern} + utf-8 + + + + + + ${log.path}/console.log + + + ${log.path}/console.%d{yyyy-MM-dd}.log + + 1 + + + ${log.pattern} + utf-8 + + + + INFO + + - - + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + - - + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + 0 + + 512 + + + + + + + + 0 + + 512 + + + @@ -44,13 +128,10 @@ - - - - - - - + + + + diff --git a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/console-appender.xml b/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/console-appender.xml deleted file mode 100644 index e323f680..00000000 --- a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/console-appender.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - ${CONSOLE_LOG_PATTERN} - UTF-8 - - - diff --git a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/file-appender.xml b/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/file-appender.xml deleted file mode 100644 index d0877544..00000000 --- a/ruoyi-visual/ruoyi-seata-server/src/main/resources/logback/file-appender.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - ${LOG_FILE_PATH}/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.all.log - true - - ${LOG_FILE_PATH}/history/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.all.%d{yyyy-MM-dd}.%i.log.gz - 2GB - 7 - 7GB - true - - - ${FILE_LOG_PATTERN} - UTF-8 - - - - - - - WARN - ACCEPT - DENY - - ${LOG_FILE_PATH}/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.warn.log - true - - ${LOG_FILE_PATH}/history/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.warn.%d{yyyy-MM-dd}.%i.log.gz - 2GB - 7 - 7GB - true - - - ${FILE_LOG_PATTERN} - UTF-8 - - - - - - - ERROR - ACCEPT - DENY - - ${LOG_FILE_PATH}/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.error.log - true - - ${LOG_FILE_PATH}/history/${APPLICATION_NAME:-seata-server}.${RPC_PORT}.error.%d{yyyy-MM-dd}.%i.log.gz - 2GB - 7 - 7GB - true - - - ${FILE_LOG_PATTERN} - UTF-8 - - -