Documentation ¶
Index ¶
- func DefaultLevel() string
- func GetModuleLevel(module string) string
- func InitBackend(formatter logging.Formatter, output io.Writer)
- func MustGetLogger(module string) *logging.Logger
- func Reset()
- func SetFormat(formatSpec string) logging.Formatter
- func SetModuleLevel(moduleRegExp string, level string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLevel ¶
func DefaultLevel() string
DefaultLevel returns the fallback value for loggers to use if parsing fails.
func GetModuleLevel ¶
GetModuleLevel gets the current logging level for the specified module.
func InitBackend ¶
InitBackend sets up the logging backend based on the provided logging formatter and I/O writer.
func MustGetLogger ¶
func MustGetLogger(module string) *logging.Logger
MustGetLogger is used in place of `logging.MustGetLogger` to allow us to store a map of all modules and submodules that have loggers in the system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.