Documentation ¶
Overview ¶
Package log defines common logging interface with basic implementation.
Index ¶
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func SetLogger(l Logger)
- func Warning(msg string, args ...interface{})
- type DebugLogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DebugLogger ¶
DebugLogger with extra utilities.
func IfDebug ¶
func IfDebug(module string) DebugLogger
IfDebug returns non empty logger if debug configuration property contains given module.
type Logger ¶
type Logger interface { // Debug log. Debug(msg string, args ...interface{}) // Info log. Info(msg string, args ...interface{}) // Warning log. Warning(msg string, args ...interface{}) // Error log. Error(msg string, args ...interface{}) // Fatal log. Fatal(msg string, args ...interface{}) }
Logger defines common logger interface.
func GetDefaultLogger ¶
func GetDefaultLogger() Logger
GetDefaultLogger returns builtin Logger implementation
Click to show internal directories.
Click to hide internal directories.