Files
screego/config/error.go
Jannis Mattheis f73e0606ac Add config
2020-10-04 20:10:38 +02:00

18 lines
434 B
Go

package config
import "github.com/rs/zerolog"
// FutureLog is an intermediate type for log messages. It is used before the config was loaded because without loaded
// config we do not know the log level, so we log these messages once the config was initialized.
type FutureLog struct {
Level zerolog.Level
Msg string
}
func futureFatal(msg string) FutureLog {
return FutureLog{
Level: zerolog.FatalLevel,
Msg: msg,
}
}