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
|
writer2 := os.Stdout
|
||||||
writer3 := &lumberjack.Logger{
|
writer3 := &lumberjack.Logger{
|
||||||
Filename: log_file,
|
Filename: log_file,
|
||||||
MaxSize: 2, // megabytes
|
MaxSize: 1, // megabytes
|
||||||
MaxBackups: 3,
|
MaxBackups: 5,
|
||||||
MaxAge: 15, //days
|
MaxAge: 7, //days
|
||||||
LocalTime: true,
|
LocalTime: true,
|
||||||
Compress: true,
|
Compress: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user