Pretty logging
Closed this issue · 2 comments
balcieren commented
How can I active this feature ?
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
li-jin-gou commented
Do I think it is possible to use hertzZerolog.WithOutput
or SetOutput
?
refer to
balcieren commented
this works
hlog.SetLogger(hertzZerolog.New(
hertzZerolog.WithOutput(zerolog.ConsoleWriter{Out: os.Stderr}),
))