# Functions
Error logs an error, with the given message and key/value pairs as context.
GetLogger returns the root logger used for logging.
Info logs a non-error message with the given key/value pairs as context.
Init initializes the logger.
InitWithOptions inits the logger with the provided opts.
MustInit calls Init and panics if it returns an error.
MustInitWithOptions calls InitWithOptions and panics if an error is returned.
NewLogger creates a new logger.
SetLogLevel sets the output verbosity.
SetOutput sets the logger output to w if the root logger is *log.Logger otherwise it returns ErrUnknownLoggerType.
UseLogger bypasses the requirement for Init and sets the logger to l.
V returns an Logger value for a specific verbosity level, relative to this Logger.
WithLogLevel sets the output log level and controls which verbosity logs are printed.
WithName adds a new element to the logger's name.
WithOutput sets the output to w.
WithValues adds some key-value pairs of context to a logger.
# 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
ErrUnknownLoggerType is returned when trying to perform a *Logger only function that is incompatible with logr.Logger interface.
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).
Logger writes logs to a specified output.
# Interfaces
Encoder encodes messages.