Hook describes hooks to be fired when logging on the logging levels returned from [Hook.Levels] on your implementation of the interface. Note that this is not fired in a goroutine or a channel with workers, you should handle such functionality yourself if your call is non-blocking, and you don't wis
| 6 | // functionality yourself if your call is non-blocking, and you don't wish for |
| 7 | // the logging calls for levels returned from `Levels()` to block. |
| 8 | type Hook interface { |
| 9 | Levels() []Level |
| 10 | Fire(*Entry) error |
| 11 | } |
| 12 | |
| 13 | // LevelHooks is an internal type for storing the hooks on a logger instance. |
| 14 | type LevelHooks map[Level][]Hook |
no outgoing calls
no test coverage detected