You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm planning to use a hook to send logs to elsewhere on top of the logger.
I know that the hook interface is like this:
type Hook interface {
// Run runs the hook with the event.
Run(e *Event, level Level, message string)
}
I'm interested to retrieve all the fields I've added to the logger context before sending the logs to elsewhere. I couldn't find anything obvious, is there a way to do this?
The text was updated successfully, but these errors were encountered:
jackhua222
changed the title
How to retrieve logger fields from Zerolog event
Retrieve logger fields from Zerolog event
Sep 8, 2023
I'm planning to use a hook to send logs to elsewhere on top of the logger.
I know that the hook interface is like this:
I'm interested to retrieve all the fields I've added to the logger context before sending the logs to elsewhere. I couldn't find anything obvious, is there a way to do this?
The text was updated successfully, but these errors were encountered: