Hook defines an interface to a log hook.
| 2 | |
| 3 | // Hook defines an interface to a log hook. |
| 4 | type Hook interface { |
| 5 | // Run runs the hook with the event. |
| 6 | Run(e *Event, level Level, message string) |
| 7 | } |
| 8 | |
| 9 | // HookFunc is an adaptor to allow the use of an ordinary function |
| 10 | // as a Hook. |
no outgoing calls
no test coverage detected