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?
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?