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

package json

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

Package json implements a JSON handler.


Package Files



var Default = New(os.Stderr)

Default handler outputting to stderr.

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields

Handler implementation.

func New Uses

func New(w io.Writer) *Handler

New handler.

func (*Handler) HandleLog Uses

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

HandleLog implements log.Handler.

Package json imports 5 packages (graph) and is imported by 38 packages. Updated 2019-11-12. Refresh now. Tools for package owners.