From 2efe3175971e273399afc6cf116100e715c57eda Mon Sep 17 00:00:00 2001 From: zhouhailin Date: Tue, 9 Jun 2020 23:02:18 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20ISSUE=20#3007=20:=20MaxHistory=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E7=A7=B0=E5=92=8CNacos=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84=E5=91=BD=E5=90=8D=E9=A3=8E=E6=A0=BC=E4=B8=8D=E7=BB=9F?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../META-INF/logback/nacos-included.xml | 2 +- .../META-INF/logback/config-included.xml | 24 ++++----- .../main/resources/META-INF/logback/nacos.xml | 12 ++--- distribution/conf/nacos-logback.xml | 50 +++++++++---------- .../META-INF/logback/naming-included.xml | 24 ++++----- 5 files changed, 56 insertions(+), 56 deletions(-) diff --git a/address/src/main/resources/META-INF/logback/nacos-included.xml b/address/src/main/resources/META-INF/logback/nacos-included.xml index 44f88e2c0..ed8f8a1e3 100644 --- a/address/src/main/resources/META-INF/logback/nacos-included.xml +++ b/address/src/main/resources/META-INF/logback/nacos-included.xml @@ -11,7 +11,7 @@ ${LOG_HOME}/nacos-address.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true diff --git a/config/src/main/resources/META-INF/logback/config-included.xml b/config/src/main/resources/META-INF/logback/config-included.xml index bdb8f3062..eedf9335f 100644 --- a/config/src/main/resources/META-INF/logback/config-included.xml +++ b/config/src/main/resources/META-INF/logback/config-included.xml @@ -9,7 +9,7 @@ ${LOG_HOME}/config-dump.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -25,7 +25,7 @@ ${LOG_HOME}/config-pull.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -41,7 +41,7 @@ ${LOG_HOME}/config-fatal.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -57,7 +57,7 @@ ${LOG_HOME}/config-memory.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -73,7 +73,7 @@ ${LOG_HOME}/config-pull-check.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -90,7 +90,7 @@ ${LOG_HOME}/config-acl.log.%d{yyyy-MM-dd}.%i 50MB - 15 + 15 512MB true @@ -107,7 +107,7 @@ ${LOG_HOME}/config-client-request.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -124,7 +124,7 @@ ${LOG_HOME}/config-sdk-request.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -141,7 +141,7 @@ ${LOG_HOME}/config-trace.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -158,7 +158,7 @@ ${LOG_HOME}/config-notify.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -175,7 +175,7 @@ ${LOG_HOME}/config-app.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -192,7 +192,7 @@ ${LOG_HOME}/config-server.log.%d{yyyy-MM-dd}.%i 50MB - 15 + 15 512MB true diff --git a/core/src/main/resources/META-INF/logback/nacos.xml b/core/src/main/resources/META-INF/logback/nacos.xml index 6d47222cf..b67b58a0b 100644 --- a/core/src/main/resources/META-INF/logback/nacos.xml +++ b/core/src/main/resources/META-INF/logback/nacos.xml @@ -25,7 +25,7 @@ ${LOG_HOME}/nacos.log.%d{yyyy-MM-dd}.%i 50MB - 15 + 15 512MB true @@ -42,7 +42,7 @@ ${LOG_HOME}/core-auth.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -59,7 +59,7 @@ ${LOG_HOME}/protocol-raft.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -76,7 +76,7 @@ ${LOG_HOME}/protocol-distro.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -93,7 +93,7 @@ ${LOG_HOME}/nacos-cluster.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -110,7 +110,7 @@ ${LOG_HOME}/alipay-jraft.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true diff --git a/distribution/conf/nacos-logback.xml b/distribution/conf/nacos-logback.xml index 27da0022b..56795c790 100644 --- a/distribution/conf/nacos-logback.xml +++ b/distribution/conf/nacos-logback.xml @@ -11,7 +11,7 @@ ${nacos.home}/logs/cmdb-main.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -35,7 +35,7 @@ ${LOG_HOME}/naming-server.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 7GB true @@ -59,7 +59,7 @@ ${LOG_HOME}/naming-raft.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -84,7 +84,7 @@ ${LOG_HOME}/naming-distro.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -108,7 +108,7 @@ ${LOG_HOME}/naming-event.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -132,7 +132,7 @@ ${LOG_HOME}/naming-push.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -148,7 +148,7 @@ ${LOG_HOME}/naming-rt.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -165,7 +165,7 @@ ${LOG_HOME}/naming-performance.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -183,7 +183,7 @@ ${LOG_HOME}/config-dump.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -199,7 +199,7 @@ ${LOG_HOME}/config-pull.log.%d{yyyy-MM-dd}.%i 20MB - 7 + 7 128MB true @@ -215,7 +215,7 @@ ${LOG_HOME}/config-fatal.log.%d{yyyy-MM-dd}.%i 20MB - 7 + 7 128MB true @@ -231,7 +231,7 @@ ${LOG_HOME}/config-memory.log.%d{yyyy-MM-dd}.%i 20MB - 7 + 7 128MB true @@ -247,7 +247,7 @@ ${LOG_HOME}/config-pull-check.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -264,7 +264,7 @@ ${LOG_HOME}/config-client-request.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -281,7 +281,7 @@ ${LOG_HOME}/config-trace.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -298,7 +298,7 @@ ${LOG_HOME}/config-notify.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true @@ -315,7 +315,7 @@ ${LOG_HOME}/config-server.log.%d{yyyy-MM-dd}.%i 50MB - 7 + 7 512MB true @@ -332,7 +332,7 @@ ${LOG_HOME}/nacos.log.%d{yyyy-MM-dd}.%i 50MB - 7 + 7 512MB true @@ -349,7 +349,7 @@ ${LOG_HOME}/nacos-address.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -366,7 +366,7 @@ ${LOG_HOME}/istio-main.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -383,7 +383,7 @@ ${LOG_HOME}/core-auth.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -400,7 +400,7 @@ ${LOG_HOME}/protocol-raft.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -417,7 +417,7 @@ ${LOG_HOME}/protocol-distro.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -434,7 +434,7 @@ ${LOG_HOME}/nacos-cluster.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true @@ -451,7 +451,7 @@ ${LOG_HOME}/alipay-jraft.log.%d{yyyy-MM-dd}.%i 2GB - 7 + 7 7GB true diff --git a/naming/src/main/resources/META-INF/logback/naming-included.xml b/naming/src/main/resources/META-INF/logback/naming-included.xml index 81258d44f..84f20f67c 100644 --- a/naming/src/main/resources/META-INF/logback/naming-included.xml +++ b/naming/src/main/resources/META-INF/logback/naming-included.xml @@ -11,7 +11,7 @@ ${LOG_HOME}/naming-server.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -27,7 +27,7 @@ ${LOG_HOME}/naming-raft.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -43,7 +43,7 @@ ${LOG_HOME}/naming-event.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -59,7 +59,7 @@ ${LOG_HOME}/naming-push.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -75,7 +75,7 @@ ${LOG_HOME}/naming-rt.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -92,7 +92,7 @@ ${LOG_HOME}/naming-performance.log.%d{yyyy-MM-dd}.%i 50MB - 15 + 15 512MB true @@ -109,7 +109,7 @@ ${LOG_HOME}/naming-router.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -126,7 +126,7 @@ ${LOG_HOME}/naming-cache.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -143,7 +143,7 @@ ${LOG_HOME}/naming-device.log.%d{yyyy-MM-dd}.%i 2GB - 15 + 15 7GB true @@ -160,7 +160,7 @@ ${LOG_HOME}/naming-tag.log.%d{yyyy-MM-dd}.%i 1GB - 15 + 15 3GB true @@ -177,7 +177,7 @@ ${LOG_HOME}/naming-debug.log.%d{yyyy-MM-dd}.%i 20MB - 15 + 15 128MB true @@ -194,7 +194,7 @@ ${LOG_HOME}/naming-distro.log.%d{yyyy-MM-dd}.%i 1GB - 7 + 7 3GB true