Documentation
¶
Overview ¶
Package log builds the process logger and the slog bridge the WNC SDK takes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Levels ¶
func Levels() []string
Levels lists the accepted --log-level values, for the flag's usage string and for the error a rejected value produces. Three of logrus's seven: nothing emits at Info, Trace, Fatal or Panic, and the spellings come from logrus, where WarnLevel is "warning".
func New ¶
New builds the process logger. Diagnostics go to stderr so they never mix with the data on stdout, and color is disabled unconditionally because a TTY check would make the output differ between a terminal and a pipe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.