Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Set(level Level) error
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- type DummyLogger
- func (l DummyLogger) Debug(...interface{})
- func (l DummyLogger) Debugf(string, ...interface{})
- func (l DummyLogger) Debugln(...interface{})
- func (l DummyLogger) Error(...interface{})
- func (l DummyLogger) Errorf(string, ...interface{})
- func (l DummyLogger) Errorln(...interface{})
- func (l DummyLogger) Fatal(...interface{})
- func (l DummyLogger) Fatalf(string, ...interface{})
- func (l DummyLogger) Fatalln(...interface{})
- func (l DummyLogger) Info(...interface{})
- func (l DummyLogger) Infof(string, ...interface{})
- func (l DummyLogger) Infoln(...interface{})
- func (l DummyLogger) Panic(...interface{})
- func (l DummyLogger) Panicf(string, ...interface{})
- func (l DummyLogger) Panicln(...interface{})
- func (l DummyLogger) Set(level Level) error
- func (l DummyLogger) Warn(...interface{})
- func (l DummyLogger) Warnf(string, ...interface{})
- func (l DummyLogger) Warningf(format string, args ...interface{})
- func (l DummyLogger) Warnln(...interface{})
- func (l DummyLogger) With(key string, value interface{}) Logger
- func (l DummyLogger) WithField(key string, value interface{}) Logger
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Dummy = DummyLogger{}
Dummy is a dummy logger
Functions ¶
Types ¶
type DummyLogger ¶
type DummyLogger struct{}
DummyLogger is an empty logger mainly used for tests
func (DummyLogger) Debug ¶
func (l DummyLogger) Debug(...interface{})
func (DummyLogger) Debugf ¶
func (l DummyLogger) Debugf(string, ...interface{})
func (DummyLogger) Debugln ¶
func (l DummyLogger) Debugln(...interface{})
func (DummyLogger) Error ¶
func (l DummyLogger) Error(...interface{})
func (DummyLogger) Errorf ¶
func (l DummyLogger) Errorf(string, ...interface{})
func (DummyLogger) Errorln ¶
func (l DummyLogger) Errorln(...interface{})
func (DummyLogger) Fatal ¶
func (l DummyLogger) Fatal(...interface{})
func (DummyLogger) Fatalf ¶
func (l DummyLogger) Fatalf(string, ...interface{})
func (DummyLogger) Fatalln ¶
func (l DummyLogger) Fatalln(...interface{})
func (DummyLogger) Info ¶
func (l DummyLogger) Info(...interface{})
func (DummyLogger) Infof ¶
func (l DummyLogger) Infof(string, ...interface{})
func (DummyLogger) Infoln ¶
func (l DummyLogger) Infoln(...interface{})
func (DummyLogger) Panic ¶
func (l DummyLogger) Panic(...interface{})
func (DummyLogger) Panicf ¶
func (l DummyLogger) Panicf(string, ...interface{})
func (DummyLogger) Panicln ¶
func (l DummyLogger) Panicln(...interface{})
func (DummyLogger) Set ¶
func (l DummyLogger) Set(level Level) error
func (DummyLogger) Warn ¶
func (l DummyLogger) Warn(...interface{})
func (DummyLogger) Warnf ¶
func (l DummyLogger) Warnf(string, ...interface{})
func (DummyLogger) Warningf ¶
func (l DummyLogger) Warningf(format string, args ...interface{})
func (DummyLogger) Warnln ¶
func (l DummyLogger) Warnln(...interface{})
func (DummyLogger) With ¶
func (l DummyLogger) With(key string, value interface{}) Logger
func (DummyLogger) WithField ¶
func (l DummyLogger) WithField(key string, value interface{}) Logger
type Logger ¶
type Logger interface { Debug(...interface{}) Debugln(...interface{}) Debugf(string, ...interface{}) Info(...interface{}) Infoln(...interface{}) Infof(string, ...interface{}) Warn(...interface{}) Warnln(...interface{}) Warnf(string, ...interface{}) Warningf(string, ...interface{}) Error(...interface{}) Errorln(...interface{}) Errorf(string, ...interface{}) Fatal(...interface{}) Fatalln(...interface{}) Fatalf(string, ...interface{}) Panic(...interface{}) Panicln(...interface{}) Panicf(string, ...interface{}) With(key string, value interface{}) Logger WithField(key string, value interface{}) Logger Set(level Level) error }
Logger is an interface that needs to be implemented in order to log.
Click to show internal directories.
Click to hide internal directories.