| 1 | // Package discard implements a no-op handler useful for benchmarks and tests. |
| 2 | package discardscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/ |
| 3 | |
| 4 | import ( |
| 5 | "github.com/apex/logscip-go gomod github.com/apex/log . `github.com/apex/log`/" |
| 6 | ) |
| 7 | |
| 8 | // Default handler. |
| 9 | var Defaultscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Default. = Newscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/New().() |
| 10 | |
| 11 | // Handler implementation. |
| 12 | type Handlerscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Handler# struct{} |
| 13 | |
| 14 | // New handler. |
| 15 | func Newscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/New().() *Handlerscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Handler# { |
| 16 | return &Handlerscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Handler#{} |
| 17 | } |
| 18 | |
| 19 | // HandleLog implements log.Handler. |
| 20 | func (h *Handlerscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Handler#) HandleLogscip-go gomod github.com/apex/log . `github.com/apex/log/handlers/discard`/Handler#HandleLog().(e *logscip-go gomod github.com/apex/log . `github.com/apex/log`/.Entryscip-go gomod github.com/apex/log . `github.com/apex/log`/Entry#) error { |
| 21 | return nil |
| 22 | } |