beautiful logging in console

This commit is contained in:
Marvin Preuss 2021-08-13 14:43:29 +02:00
parent 766dbf8abe
commit 538de91555

View File

@ -12,7 +12,7 @@ import (
func main() { func main() {
sselog.Log = sselog.NewSSELog() sselog.Log = sselog.NewSSELog()
log.Logger = zerolog.New(io.MultiWriter(os.Stderr, sselog.Log)).With().Caller().Logger() log.Logger = zerolog.New(io.MultiWriter(zerolog.ConsoleWriter{Out: os.Stderr}, sselog.Log)).With().Caller().Logger()
cmd.Execute() cmd.Execute()
} }