Documentation
¶
Index ¶
- func Debugw(msg string, keysAndValues ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func NewGlobalLogger(debug bool)
- func Panicw(msg string, keysAndValues ...interface{})
- func Sync()
- func Warnw(msg string, keysAndValues ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlobalLogger ¶
func NewGlobalLogger(debug bool)
Initialize the logger once, so it can be used in other packages.
Types ¶
type Logger ¶
type Logger interface { Infow(msg string, keysAndValues ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorw(msg string, keysAndValues ...interface{}) Panicw(msg string, keysAndValues ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Sync() error }
Click to show internal directories.
Click to hide internal directories.