logging/config.go

17 lines
450 B
Go
Raw Normal View History

2025-03-27 16:14:28 +01:00
package logging
type Config struct {
Level string `yaml:"level" envconfig:"LEVEL"`
Format string `yaml:"format" envconfig:"FORMAT"`
Destination string `yaml:"destination" envconfig:"DESTINATION"`
DestinationFilepath string `yaml:"destination_filepath" envconfig:"DESTINATION_FILEPATH"`
}
func NewConfig() *Config {
return &Config{
Level: "debug",
Format: "text",
Destination: "stdout",
}
}