Browse Source

log时间

terry 1 year ago
parent
commit
f27a2e1c9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/logger/lclog.go

+ 1 - 1
util/logger/lclog.go

@@ -48,7 +48,7 @@ func InitLog() {
 		fileName := path.Join(logFilePath, logFileName)
 		writer, _ := rotatelogs.New(
 			fileName+".%Y%m%d.log",
-			rotatelogs.WithMaxAge(15*24*time.Hour),    // 文件最大保存时间
+			rotatelogs.WithMaxAge(5*24*time.Hour),     // 文件最大保存时间
 			rotatelogs.WithRotationTime(24*time.Hour), // 日志切割时间间隔
 		)
 		// 实例化