Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit a40932c

Browse files
committed
feat: add possibility to autoremove log file after 22 days
1 parent 83934e6 commit a40932c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

logger/logger.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var (
2323
func newFileWriter(filename string) io.Writer {
2424
return &lumberjack.Logger{
2525
Filename: filename,
26+
MaxAge: 22,
2627
}
2728
}
2829

0 commit comments

Comments
 (0)