mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
14 lines
295 B
Go
14 lines
295 B
Go
package logger
|
|
|
|
// Config is the logger configuration (simplified version)
|
|
type Config struct {
|
|
Level string `json:"level"` // Log level: debug, info, warn, error (default: info)
|
|
}
|
|
|
|
// SetDefaults sets default values
|
|
func (c *Config) SetDefaults() {
|
|
if c.Level == "" {
|
|
c.Level = "info"
|
|
}
|
|
}
|