logrus

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 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
}

func NewLogger

func NewLogger(out io.Writer) *Logger

func (*Logger) Debug

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

func (*Logger) Debugf added in v0.7.0

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

func (*Logger) Error

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

func (*Logger) Exit

func (*Logger) Exit(code int)

func (*Logger) GetLevel

func (this *Logger) GetLevel() logging.Level

func (*Logger) Info

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

func (*Logger) Infof

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

func (*Logger) SetFormatter

func (this *Logger) SetFormatter(formatter logging.Formatter)

func (*Logger) SetLevel

func (this *Logger) SetLevel(lvl logging.Level)

func (*Logger) Warn

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

func (*Logger) Warnf

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

func (*Logger) WithError

func (this *Logger) WithError(err error) logging.Logger

func (*Logger) WithField

func (this *Logger) WithField(keys string, value interface{}) logging.Logger

func (*Logger) WithFields

func (this *Logger) WithFields(fields logging.Fields) logging.Logger

Jump to

Keyboard shortcuts

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