Skip to content

Commit

Permalink
feat: keep only one log file
Browse files Browse the repository at this point in the history
  • Loading branch information
igoogolx committed Sep 26, 2023
1 parent d25d9b3 commit ecba42d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ func InitLog() {
log.SetOutput(&output{
&lumberjack.Logger{
Filename: constants.Path.LogFilePath(),
MaxSize: 5, // megabytes
MaxBackups: 1,
MaxAge: 5, //days
Compress: true, // disabled by default
MaxSize: 1, // megabytes
MaxBackups: 0,
},
})
}
Expand Down

0 comments on commit ecba42d

Please sign in to comment.