Skip to content

Commit

Permalink
modify log backup times (node-real#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Dec 15, 2023
1 parent 7eb76f6 commit 743d023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func initSeparatedLogging(
lumberjack := &lumberjack.Logger{
Filename: path.Join(dirPath, filePrefix+".log"),
MaxSize: 100, // megabytes
MaxBackups: 3,
MaxBackups: 10,
MaxAge: 28, //days
}
userLog := log.StreamHandler(lumberjack, dirFormat)
Expand Down

0 comments on commit 743d023

Please sign in to comment.