Documentation
¶
Overview ¶
Package logflags gives the command-line tools the same logging flags: -log-level (debug, info, warn, error) and -log-format (text, json), each defaulting to an environment variable, and builds the slog.Logger they ask for. Logs go to stderr; stdout stays the command's output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("logflags: invalid value")
ErrInvalid reports a log level or format that is not one of the known ones.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.