diff --git a/logger.go b/logger.go index 05f65eb..bc361f0 100644 --- a/logger.go +++ b/logger.go @@ -41,7 +41,10 @@ func SetupConsoleLogger(c *cli.Context) error { log.Fatal().Msgf("unknown logging level: %s", level) } zerolog.SetGlobalLevel(lvl) - log.Logger = zerolog.New(zerolog.ConsoleWriter{Out: os.Stdout}).With().Timestamp().Logger() + log.Logger = zerolog.New(zerolog.ConsoleWriter{ + Out: os.Stdout, + FieldsExclude: []string{"time"}, + }).With().Timestamp().Logger() if zerolog.GlobalLevel() <= zerolog.DebugLevel { log.Logger = log.With().Caller().Logger() log.Log().Msgf("LogLevel = %s", zerolog.GlobalLevel().String())