Documentation ¶
Index ¶
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- func WithField(key string, value interface{}) loggers.Advanced
- func WithFields(fields ...interface{}) loggers.Advanced
Constants ¶
This section is empty.
Variables ¶
var Logger loggers.Contextual
Logger is an Contextual logger interface.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf works the same as Debug but supports formatting.
func Debugln ¶
func Debugln(v ...interface{})
Debugln works the same as Debug but supports formatting.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf works the same as Error but supports formatting.
func Errorln ¶
func Errorln(v ...interface{})
Errorln works the same as Error but prints each value on a line.
func Fatal ¶
func Fatal(v ...interface{})
Fatal should be only used when it's not possible to continue program execution.
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf works the same as Fatal but supports formatting.
func Fatalln ¶
func Fatalln(v ...interface{})
Fatalln works the same as Fatal but prints each value on a line.
func Infof ¶
func Infof(format string, v ...interface{})
Infof works the same as Info but supports formatting.
func Panicf ¶
func Panicf(format string, v ...interface{})
Panicf works the same as Panic but supports formatting.
func Panicln ¶
func Panicln(v ...interface{})
Panicln works the same as Panic but prints each value on a line.
func Printf ¶
func Printf(format string, v ...interface{})
Printf works the same as Print but supports formatting.
func Println ¶
func Println(v ...interface{})
Println works the same as Print but prints each value on a line.
func Warnf ¶
func Warnf(format string, v ...interface{})
Warnf works the same as Warn but supports formatting.
func Warnln ¶
func Warnln(v ...interface{})
Warnln works the same as Warn but prints each value on a line.
func WithField ¶
func WithField(key string, value interface{}) loggers.Advanced
WithField adds the key value as parameter to log.
func WithFields ¶
func WithFields(fields ...interface{}) loggers.Advanced
WithFields adds the fields as a list of key/value parameters to log. Even number expected.
Types ¶
This section is empty.