HookFunc is an adaptor to allow the use of an ordinary function as a Hook.
func(e *Event, level Level, message string)
| 9 | // HookFunc is an adaptor to allow the use of an ordinary function |
| 10 | // as a Hook. |
| 11 | type HookFunc func(e *Event, level Level, message string) |
| 12 | |
| 13 | // Run implements the Hook interface. |
| 14 | func (h HookFunc) Run(e *Event, level Level, message string) { |
no outgoing calls
no test coverage detected