From 2fa8c254fc53cda3d33c56931569822e645dd902 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 19 Jan 2024 23:11:22 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=BB=9A=E5=8A=A8=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=E5=9F=BA=E4=BA=8E=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F=E5=92=8C=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../src/main/resources/logback-spring.xml | 33 ++++++++++++------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 29d0410c..ddbde8da 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,7 @@ build/ ### Temp ### *.log +*.log.gz *.logs *.cache *.diff diff --git a/continew-admin-webapi/src/main/resources/logback-spring.xml b/continew-admin-webapi/src/main/resources/logback-spring.xml index 9dc51aee..981650af 100644 --- a/continew-admin-webapi/src/main/resources/logback-spring.xml +++ b/continew-admin-webapi/src/main/resources/logback-spring.xml @@ -7,19 +7,21 @@ - + - + - + - - + - + + + + @@ -41,12 +43,14 @@ ${LOG_PATH}/${APP_NAME}.log - - - - ${LOG_PATH}/${APP_NAME}.log.%d{yyyy-MM-dd}.gz - - 15 + + + + ${LOG_PATH}/%d{yyyy-MM-dd}/${APP_NAME}.%d{yyyy-MM-dd}.%i.log.gz + + ${FILE_MAX_SIZE} + + ${FILE_MAX_HISTORY} ${FILE_LOG_PATTERN} @@ -69,7 +73,10 @@ + + + @@ -78,5 +85,7 @@ + +