mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 09:51:47 -06:00
update log rotation & fix fn_log.sqf include
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
BIN
releases/attendancetracker-0.2.0.20231003-f2ad1b.zip
Normal file
BIN
releases/attendancetracker-0.2.0.20231003-f2ad1b.zip
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user