package json
import "github.com/bep/logg/handlers/json"
Package json implements a JSON handler.
Index ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
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 ¶
HandleLog implements logg.Handler.
Source Files ¶
- Version
- v0.4.0 (latest)
- Published
- Nov 6, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 days ago –
Tools for package owners.