日志分割,500mb

This commit is contained in:
lwl0608 2024-05-06 10:42:54 +08:00
parent d34f30c8b2
commit 7aff32ca0f
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ func InitLogger(config configcenter.LoggerConfig) {
rotatelogs.WithLinkName(config.FileAbsPath),
rotatelogs.WithMaxAge(time.Duration(86400*7)*time.Second),
rotatelogs.WithRotationTime(time.Duration(86400)*time.Second),
rotatelogs.WithRotationSize(1024*1024*500),
)
var writers io.Writer