mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
feat: adjust log file rotation
This commit is contained in:
parent
754997a33d
commit
8e649ca8b9
@ -34,9 +34,9 @@ func SetLogConf(level string) {
|
||||
writer2 := os.Stdout
|
||||
writer3 := &lumberjack.Logger{
|
||||
Filename: log_file,
|
||||
MaxSize: 2, // megabytes
|
||||
MaxBackups: 3,
|
||||
MaxAge: 15, //days
|
||||
MaxSize: 1, // megabytes
|
||||
MaxBackups: 5,
|
||||
MaxAge: 7, //days
|
||||
LocalTime: true,
|
||||
Compress: true,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user