Documentation ¶
Index ¶
- func GetLevel(module string) log.Level
- func HideCallerInfo(module string, level log.Level)
- func IsCallerInfoEnabled(module string, level log.Level) bool
- func IsEnabledFor(module string, level log.Level) bool
- func ParseLevel(level string) (log.Level, error)
- func ParseString(level log.Level) string
- func SetLevel(module string, level log.Level)
- func ShowCallerInfo(module string, level log.Level)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HideCallerInfo ¶
HideCallerInfo - Do not show caller info in log lines for given log level and module.
func IsCallerInfoEnabled ¶
IsCallerInfoEnabled - returns if caller info enabled for given log level and module.
func IsEnabledFor ¶
IsEnabledFor - Check if given log level is enabled for given module.
func ParseLevel ¶
ParseLevel returns the log level from a string representation.
func ParseString ¶
ParseString returns string representation of given log level.
func ShowCallerInfo ¶
ShowCallerInfo - Show caller info in log lines for given log level and module.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.