Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogLevelFlagName is the flag name used for setting the default log level. LogLevelFlagName = "log-level" // LogLevelEnvKey is the env var name used for setting the default log level. LogLevelEnvKey = "LOG_LEVEL" // LogLevelFlagShorthand is the shorthand flag name used for setting the default log level. LogLevelFlagShorthand = "l" // LogLevelPrefixFlagUsage is the usage text for the log level flag. LogLevelPrefixFlagUsage = "Logging level to set. Supported options: CRITICAL, ERROR, WARNING, INFO, DEBUG." + `Defaults to info if not set. Setting to debug may adversely impact performance. Alternatively, this can be ` + "set with the following environment variable: " + LogLevelEnvKey )
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogLevel ¶
SetDefaultLogLevel sets the default log level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.