From 442d6cef7a3472f8c2b9f6a67d6408d8b7932979 Mon Sep 17 00:00:00 2001 From: xc Date: Tue, 2 Sep 2025 09:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E5=8D=95?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=BD=AC=E5=AD=98=E5=A4=A7=E5=B0=8F10m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scagent/util/xttlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scagent/util/xttlog.go b/scagent/util/xttlog.go index 8ab8dd8..3e13f87 100644 --- a/scagent/util/xttlog.go +++ b/scagent/util/xttlog.go @@ -15,7 +15,7 @@ func NewProductionLogger() *zap.Logger { hook := &lumberjack.Logger{ Filename: "./logs/app.log", // 日志文件路径 - MaxSize: 100, // 单个文件最大大小(MB) + MaxSize: 10, // 单个文件最大大小(MB) MaxBackups: 7, // 最多保留多少个备份文件 MaxAge: 7, // 日志文件最多保留多少天 Compress: true, // 是否压缩备份文件(gzip)