Adjust env logger options

This commit is contained in:
Florian Hoss 2023-10-30 11:37:51 +01:00
parent 9afd3953e6
commit 614112aeb2

2
internal/env/env.go vendored
View file

@ -13,7 +13,7 @@ type Config struct {
TimeZone string `env:"TZ" envDefault:"Etc/UTC" validate:"timezone"` TimeZone string `env:"TZ" envDefault:"Etc/UTC" validate:"timezone"`
Title string `env:"TITLE" envDefault:"goDash"` Title string `env:"TITLE" envDefault:"goDash"`
Port int `env:"PORT" envDefault:"4000" validate:"min=1024,max=49151"` Port int `env:"PORT" envDefault:"4000" validate:"min=1024,max=49151"`
LogLevel string `env:"LOG_LEVEL" envDefault:"info" validate:"oneof=debug info warn error panic fatal"` LogLevel string `env:"LOG_LEVEL" envDefault:"info" validate:"oneof=debug info warn error"`
LiveSystem bool `env:"LIVE_SYSTEM" envDefault:"true"` LiveSystem bool `env:"LIVE_SYSTEM" envDefault:"true"`
} }