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)