fix: issues

This commit is contained in:
Rogee
2024-09-05 19:08:02 +08:00
parent 81c60f2e9d
commit 1a628f7e96
4 changed files with 34 additions and 5 deletions

View File

@@ -21,8 +21,8 @@ func InitLogger(cfg *config.Config) error {
logWriter := zapcore.AddSync(&lj.Logger{
Filename: cfg.LogFile,
MaxBackups: 3,
MaxSize: 1, // megabytes
MaxAge: 7, // days
MaxSize: 100, // megabytes
MaxAge: 7, // days
})
logCore := zapcore.NewCore(
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),