From 936d2591397f88424651adb615d9edde2262e857 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Sun, 28 Jan 2024 20:57:40 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=92=8C=E6=95=B0=E9=87=8F=E6=94=AF=E6=8C=81?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/application.properties | 3 +++
core/backend/src/main/resources/logback.xml | 16 ++++++++--------
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/core/backend/src/main/resources/application.properties b/core/backend/src/main/resources/application.properties
index fb50ef16d8..2b9a8079f3 100644
--- a/core/backend/src/main/resources/application.properties
+++ b/core/backend/src/main/resources/application.properties
@@ -32,6 +32,9 @@ knife4j.setting.enableOpenApi=false
knife4j.setting.enableAfterScript=false
version=@project.version@
logging.file.path=/opt/dataease/logs/${spring.application.name}
+logging.file.history=30
+logging.file.size=50MB
+
# view
spring.resources.static-locations=classpath:/templates/,classpath:/static/
# flyway enable
diff --git a/core/backend/src/main/resources/logback.xml b/core/backend/src/main/resources/logback.xml
index c581df7eeb..54b22c9778 100644
--- a/core/backend/src/main/resources/logback.xml
+++ b/core/backend/src/main/resources/logback.xml
@@ -19,10 +19,10 @@
${logging.file.path}/history/debug.%d{yyyyMMdd}-%i.log
- 30
+ ${logging.file.history}
- 50MB
+ ${logging.file.size}
@@ -40,10 +40,10 @@
${logging.file.path}/history/info.%d{yyyyMMdd}-%i.log
- 30
+ ${logging.file.history}
- 50MB
+ ${logging.file.size}
@@ -64,10 +64,10 @@
${logging.file.path}/history/error.%d{yyyyMMdd}-%i.log
- 30
+ ${logging.file.history}
- 50MB
+ ${logging.file.size}
@@ -87,10 +87,10 @@
${logging.file.path}/history/warn.%d{yyyyMMdd}-%i.log
- 30
+ ${logging.file.history}
- 50MB
+ ${logging.file.size}