Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
func GetSpec() string
GetSpec returns the log spec which specifies the log level of each individual module. The spec is in the following format:
module1=level1:module2=level2:module3=level3:defaultLevel
Example:
module1=error:module2=debug:module3=warning:info
func SetDefaultLevel ¶
SetDefaultLevel sets the default log level.
func SetSpec ¶
SetSpec sets the log levels for individual modules as well as the default log level. The format of the spec is as follows:
module1=level1:module2=level2:module3=level3:defaultLevel
Valid log levels are: critical, error, warning, info, debug
Example:
module1=error:module2=debug:module3=warning:info
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.