Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGlobalLogLevel ¶
Set the log level. Note: this ONLY affects loggers created using the GetLogger function AFTER this function has been called. Therefore, you need to call this as early in the life of your CLI app as possible!
Types ¶
type TextFormatterWithBinName ¶ added in v0.7.0
type TextFormatterWithBinName struct { Name string TextFormatter logrus.TextFormatter }
TextFormatterWithBinName is a logrus formatter that prefixes the binary name to the log output.
Click to show internal directories.
Click to hide internal directories.