config from env and log to file

This commit is contained in:
Aleksandr Trushkin
2024-02-26 13:32:24 +03:00
parent 5a10d21689
commit e09acf6bdb
4 changed files with 67 additions and 11 deletions

View File

@ -52,4 +52,5 @@ func (l *LogFormat) UnmarshalText(data []byte) (err error) {
type Log struct {
Level string `json:"level" toml:"level"`
Format string `json:"format" toml:"format"`
Output string `json:"output" toml:"output"`
}