package
2.1.0
Repository: https://github.com/viaq/logerr.git
Documentation: pkg.go.dev

# Functions

NewLogSink creates a new logsink.

# Constants

Keys used to log specific builtin fields.
Keys used to log specific builtin fields.
Keys used to log specific builtin fields.
Keys used to log specific builtin fields.
Keys used to log specific builtin fields.
Keys used to log specific builtin fields.

# Variables

TimestampFunc returns a string formatted version of the current time.

# Structs

JSONEncoder encodes messages as JSON.
Line orders log line fields.
LineJSON add json tags to Line struct (production logs).
LineJSONDev add json tags to Line struct (developer logs, enable using environment variable LOG_DEV).
Sink writes logs to a specified output.

# Interfaces

Encoder encodes messages.

# Type aliases

Verbosity is a level of verbosity to log between 0 and math.MaxInt32 However it is recommended to keep the numbers between 0 and 3.