Documentation ¶
Overview ¶
Package distribution implements a logger which compatible to logrus/std log/prometheus.
Index ¶
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugln(args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoln(args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicln(args ...interface{})
- func (l *Logger) Print(args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(args ...interface{})
- func (l *Logger) Trace(args ...interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Traceln(args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warning(args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- func (l *Logger) Warningln(args ...interface{})
- func (l *Logger) Warnln(args ...interface{})
- func (l *Logger) WithError(err error) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a logger which compatible to logrus/std log/prometheus. it implements Print() Println() Printf() Dbug() Debugln() Debugf() Info() Infoln() Infof() Warn() Warnln() Warnf() Error() Errorln() Errorf() Fatal() Fataln() Fatalf() Panic() Panicln() Panicf() With() WithField() WithFields().
func (*Logger) Debug ¶
func (l *Logger) Debug(args ...interface{})
Debug logs a message at level Debug on the compatibleLogger.
func (*Logger) Debugln ¶
func (l *Logger) Debugln(args ...interface{})
Debugln logs a message at level Debug on the compatibleLogger.
func (*Logger) Error ¶
func (l *Logger) Error(args ...interface{})
Error logs a message at level Error on the compatibleLogger.
func (*Logger) Errorln ¶
func (l *Logger) Errorln(args ...interface{})
Errorln logs a message at level Error on the compatibleLogger.
func (*Logger) Fatal ¶
func (l *Logger) Fatal(args ...interface{})
Fatal logs a message at level Fatal on the compatibleLogger.
func (*Logger) Fatalln ¶
func (l *Logger) Fatalln(args ...interface{})
Fatalln logs a message at level Fatal on the compatibleLogger.
func (*Logger) Info ¶
func (l *Logger) Info(args ...interface{})
Info logs a message at level Info on the compatibleLogger.
func (*Logger) Infoln ¶
func (l *Logger) Infoln(args ...interface{})
Infoln logs a message at level Info on the compatibleLogger.
func (*Logger) Panic ¶
func (l *Logger) Panic(args ...interface{})
Panic logs a message at level Painc on the compatibleLogger.
func (*Logger) Panicln ¶
func (l *Logger) Panicln(args ...interface{})
Panicln logs a message at level Painc on the compatibleLogger.
func (*Logger) Print ¶
func (l *Logger) Print(args ...interface{})
Print logs a message at level Print on the compatibleLogger.
func (*Logger) Println ¶
func (l *Logger) Println(args ...interface{})
Println logs a message at level Print on the compatibleLogger.
func (*Logger) Trace ¶
func (l *Logger) Trace(args ...interface{})
Trace logs a message at level Trace on the compatibleLogger.
func (*Logger) Traceln ¶
func (l *Logger) Traceln(args ...interface{})
Traceln logs a message at level Trace on the compatibleLogger.
func (*Logger) Warn ¶
func (l *Logger) Warn(args ...interface{})
Warn logs a message at level Warn on the compatibleLogger.
func (*Logger) Warning ¶
func (l *Logger) Warning(args ...interface{})
Warning logs a message at level Warn on the compatibleLogger.
func (*Logger) Warningln ¶
func (l *Logger) Warningln(args ...interface{})
Warningln logs a message at level Warning on the compatibleLogger.