Use slog for logging

This commit is contained in:
2024-12-12 20:53:35 +01:00
parent ea916c3ecc
commit 9d82b6426c
2 changed files with 163 additions and 196 deletions

View File

@@ -43,7 +43,7 @@ func DefaultConfig() *Config {
IsDevelopment: false,
LogDir: "./logs",
LogLevel: logging.INFO,
ConsoleOutput: true,
ConsoleOutput: false,
}
}
@@ -134,8 +134,6 @@ func LoadConfig() (*Config, error) {
if parsed, err := strconv.ParseBool(consoleOutput); err == nil {
config.ConsoleOutput = parsed
}
} else if config.IsDevelopment {
config.ConsoleOutput = true
}
// Validate all settings