-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
@ziflex thanks for the reply. I was able to implement the MultiLevelWriter. I am writting to Stdout and file.
I have a new issue added the response from c.Response echo context to the lecho logger.
I've tried the following:
Echo Bodydump middleware as a separate log.
Enricher method:
Enricher: func(c echo.Context, logger zerolog.Context) zerolog.Context {
return e.Interface("response", c.Response())
},
Ideally I can update or modify the logger context with response for a single stdout/file log.
I think it would be cool to allow combining of Bodydump and Enricher somehow.
I've read through this Zerolog guild but didn't find any working solutions
Thanks
Metadata
Metadata
Assignees
Labels
No labels