config from env and log to file

This commit is contained in:
Aleksandr Trushkin
2024-02-26 13:32:24 +03:00
parent fd29ef6ff8
commit 5bcccd8aa7
3 changed files with 65 additions and 10 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"`
}