Handler is the interface of things that can handle log entries.
| 16 | |
| 17 | // Handler is the interface of things that can handle log entries. |
| 18 | type Handler interface { |
| 19 | HandleLog(Entry) error |
| 20 | } |
| 21 | |
| 22 | // NoopHandler is a handler that does nothing. |
| 23 | var NoopHandler = &noopHandler{} |