update log rotation & fix fn_log.sqf include

This commit is contained in:
2023-10-04 12:21:51 -07:00
parent f2ad1bed9e
commit 6173cd2c89
3 changed files with 3 additions and 3 deletions

View File

@@ -51,8 +51,8 @@ func InitLoggers(o *LoggerOptionsType) {
// create a new lumberjack file logger (adds log rotation and compression) // create a new lumberjack file logger (adds log rotation and compression)
ll = &lumberjack.Logger{ ll = &lumberjack.Logger{
Filename: ActiveOptions.Path, Filename: ActiveOptions.Path,
MaxSize: 1, MaxSize: 5,
MaxBackups: 5, MaxBackups: 10,
MaxAge: 14, MaxAge: 14,
Compress: true, Compress: true,
LocalTime: true, LocalTime: true,
@@ -118,7 +118,7 @@ func InitLoggers(o *LoggerOptionsType) {
FormatTimestamp: armaLogFormatTimestamp, FormatTimestamp: armaLogFormatTimestamp,
FormatLevel: armaLogFormatLevel, FormatLevel: armaLogFormatLevel,
}, },
)).With().Timestamp().Caller().Logger() )).With().Timestamp().Logger()
if ActiveOptions.Debug { if ActiveOptions.Debug {
Log = Log.Level(zerolog.DebugLevel) Log = Log.Level(zerolog.DebugLevel)

Binary file not shown.