Documentation
¶
Overview ¶
Package json provides a JSON log entry handler formatting JSON into the given Writer.
Index ¶
Constants ¶
View Source
const StandardTimeFormat = "2006-01-02T15:04:05.0000"
StandardTimeFormat represents the time format used in the handler by default.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents a JSON log entry handler formatting JSON into the given Writer.
func (*Handler) SetAddingEOL ¶
SetAddingEOL defines whether an EOL character should be output to the writer after each JSON log entry output (default: false as the writer is assumed to be a JSON consumer rather than a plain vanilla writer).
func (*Handler) SetTimeFormat ¶
SetTimeFormat defines the formatting of time used for output into JSON.
Click to show internal directories.
Click to hide internal directories.