Documentation ¶ Overview ¶ Package json implements a JSON handler. Index ¶ type Handler func New(w io.Writer) *Handler func (h *Handler) HandleLog(e *logg.Entry) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler struct { // contains filtered or unexported fields } func New ¶ func New(w io.Writer) *Handler New Handler implementation for JSON logging. Eeach log Entry is written as a single JSON object, no more than one write to w. The writer w should be safe for concurrent use by multiple goroutines if the returned Handler will be used concurrently. func (*Handler) HandleLog ¶ func (h *Handler) HandleLog(e *logg.Entry) error HandleLog implements logg.Handler. Source Files ¶ View all Source files json.go Click to show internal directories. Click to hide internal directories.