e1.9.0 Structured JSON log method added, refactored.

This commit is contained in:
2025-07-14 20:49:22 -04:00
parent 146141a38e
commit b0d26a313d
9 changed files with 138 additions and 159 deletions

View File

@ -64,7 +64,7 @@ func (l *Logger) Init(cfg *config.Config, basePath string) error {
return err
}
return l.applyAndReconfigureLocked()
return l.applyConfig()
}
// InitWithDefaults initializes the logger with built-in defaults and optional overrides
@ -94,7 +94,7 @@ func (l *Logger) InitWithDefaults(overrides ...string) error {
return fmtErrorf("failed to get current value for '%s'", key)
}
var parsedValue interface{}
var parsedValue any
var parseErr error
switch currentVal.(type) {
@ -124,7 +124,7 @@ func (l *Logger) InitWithDefaults(overrides ...string) error {
}
}
return l.applyAndReconfigureLocked()
return l.applyConfig()
}
// Shutdown gracefully closes the logger, attempting to flush pending records