log: github.com/apex/log/handlers/discard Index | Files

package discard

import "github.com/apex/log/handlers/discard"

Package discard implements a no-op handler useful for benchmarks and tests.


Package Files



var Default = New()

Default handler.

type Handler Uses

type Handler struct{}

Handler implementation.

func New Uses

func New() *Handler

New handler.

func (*Handler) HandleLog Uses

func (h *Handler) HandleLog(e *log.Entry) error

HandleLog implements log.Handler.

Package discard imports 1 packages (graph) and is imported by 10 packages. Updated 2016-07-26. Refresh now. Tools for package owners.