Set 200mb as max single session log size

This commit is contained in:
Ben Sarmiento
2024-04-26 13:39:51 +02:00
parent f8b152dc76
commit 7f944d564b

View File

@@ -55,8 +55,9 @@ func NewLogger(logPath string) *Logger {
// Set up file logging with overwrite mode
logFile := zapcore.AddSync(&lumberjack.Logger{
Filename: logPath,
MaxSize: 10, // megabytes
Filename: logPath,
MaxSize: 10, // megabytes
MaxBackups: 20,
})
fmt.Println("Logging to", logPath)