distribution

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

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 NewLogger

func NewLogger(logger *zap.Logger) *Logger

NewLogger create the field logger object by giving zap logger.

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug logs a message at level Debug on the compatibleLogger.

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

Debugf 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) Errorf

func (l *Logger) Errorf(format string, args ...interface{})

Errorf 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) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

Fatalf 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) Infof

func (l *Logger) Infof(format string, args ...interface{})

Infof 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) Panicf

func (l *Logger) Panicf(format string, args ...interface{})

Panicf 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) Printf

func (l *Logger) Printf(format string, args ...interface{})

Printf 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) Tracef

func (l *Logger) Tracef(format string, args ...interface{})

Tracef 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) Warnf

func (l *Logger) Warnf(format string, args ...interface{})

Warnf 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) Warningf

func (l *Logger) Warningf(format string, args ...interface{})

Warningf logs a message at level Warning on the compatibleLogger.

func (*Logger) Warningln

func (l *Logger) Warningln(args ...interface{})

Warningln logs a message at level Warning on the compatibleLogger.

func (*Logger) Warnln

func (l *Logger) Warnln(args ...interface{})

Warnln logs a message at level Warn on the compatibleLogger.

func (*Logger) WithError

func (l *Logger) WithError(err error) *logrus.Entry

WithError return a logger with an error field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL