Commit 7a6e4556 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Configure console logging output for zerolog

- Add console writer to log output for improved readability
- Maintain debug log level configuration
parent abbfc041
...@@ -14,8 +14,8 @@ const ( ...@@ -14,8 +14,8 @@ const (
) )
func main() { func main() {
zerolog.SetGlobalLevel(zerolog.DebugLevel) zerolog.SetGlobalLevel(zerolog.DebugLevel)
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stdout})
log.Info().Msg("starting gateway") log.Info().Msg("starting gateway")
rootCmd := app.NewRootCommand() rootCmd := app.NewRootCommand()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment