mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 09:51:47 -06:00
implement CBA macros, fix for prod
- using a3go 0.3.2, no longer relies on ext callback for anything except RPT logging and waiting DB connect at postinit - tested and functional
This commit is contained in:
@@ -52,9 +52,9 @@ func InitLoggers(o *LoggerOptionsType) {
|
||||
ll = &lumberjack.Logger{
|
||||
Filename: ActiveOptions.Path,
|
||||
MaxSize: 5,
|
||||
MaxBackups: 10,
|
||||
MaxBackups: 8,
|
||||
MaxAge: 14,
|
||||
Compress: true,
|
||||
Compress: false,
|
||||
LocalTime: true,
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ func InitLoggers(o *LoggerOptionsType) {
|
||||
armaLogFormatLevel := func(i interface{}) string {
|
||||
return strings.ToUpper(
|
||||
fmt.Sprintf(
|
||||
"(%s)",
|
||||
"%s:",
|
||||
i,
|
||||
))
|
||||
}
|
||||
@@ -117,13 +117,17 @@ func InitLoggers(o *LoggerOptionsType) {
|
||||
NoColor: true,
|
||||
FormatTimestamp: armaLogFormatTimestamp,
|
||||
FormatLevel: armaLogFormatLevel,
|
||||
FieldsExclude: []string{zerolog.CallerFieldName, "ctx"},
|
||||
},
|
||||
)).With().Timestamp().Logger()
|
||||
)).With().Timestamp().Caller().Logger()
|
||||
|
||||
if ActiveOptions.Debug {
|
||||
Log = Log.Level(zerolog.DebugLevel)
|
||||
} else {
|
||||
Log = Log.Level(zerolog.InfoLevel)
|
||||
}
|
||||
if ActiveOptions.Trace {
|
||||
Log = Log.Level(zerolog.TraceLevel)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user