json

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package json implements a JSON handler.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL