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

@@ -57,6 +57,7 @@ func NewLogger(logPath string) *Logger {
logFile := zapcore.AddSync(&lumberjack.Logger{ logFile := zapcore.AddSync(&lumberjack.Logger{
Filename: logPath, Filename: logPath,
MaxSize: 10, // megabytes MaxSize: 10, // megabytes
MaxBackups: 20,
}) })
fmt.Println("Logging to", logPath) fmt.Println("Logging to", logPath)