logrus

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 5 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 struct

func DefaultLogger

func DefaultLogger() *Logger

DefaultLogger return default value of logger

func New

func New(config *logger.Config) (*Logger, error)

New logger

func (*Logger) Debug

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

Debug function

func (*Logger) Debugf

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

Debugf function

func (*Logger) Debugln

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

Debugln function

func (*Logger) Debugw

func (l *Logger) Debugw(message string, fields logger.KV)

Debugw function

func (*Logger) Error

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

Error function

func (*Logger) Errorf

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

Errorf function

func (*Logger) Errorln

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

Errorln function

func (*Logger) Errorw

func (l *Logger) Errorw(message string, fields logger.KV)

Errorw function

func (*Logger) Fatal

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

Fatal function

func (*Logger) Fatalf

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

Fatalf function

func (*Logger) Fatalln

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

Fatalln function

func (*Logger) Fatalw

func (l *Logger) Fatalw(message string, fields logger.KV)

Fatalw function

func (*Logger) Info

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

Info function

func (*Logger) Infof

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

Infof function

func (*Logger) Infoln

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

Infoln function

func (*Logger) Infow

func (l *Logger) Infow(message string, fields logger.KV)

Infow function

func (*Logger) SetConfig

func (l *Logger) SetConfig(config *logger.Config) error

SetConfig to paply a new config to logger

func (*Logger) SetLevel

func (l *Logger) SetLevel(level logger.Level) error

SetLevel for setting log level

func (*Logger) Warn

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

Warn function

func (*Logger) Warnf

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

Warnf function

func (*Logger) Warnln

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

Warnln function

func (*Logger) Warnw

func (l *Logger) Warnw(message string, fields logger.KV)

Warnw function

Jump to

Keyboard shortcuts

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