New creates a new Handler that stores the entries in memory.
()
| 29 | |
| 30 | // New creates a new Handler that stores the entries in memory. |
| 31 | func New() *Handler { |
| 32 | return &Handler{ |
| 33 | Entries: make([]log.Entry, 0), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // HandleLog implements log.Handler. |
| 38 | func (h *Handler) HandleLog(entry log.Entry) error { |
no outgoing calls