logrus

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileHook

func NewFileHook(paths []string, levels []logrus.Level) logrus.Hook

func NewLogger

func NewLogger(options *logger.Options) logger.Logger

func NewWriter

func NewWriter(outputPaths []string) io.Writer

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) Entity added in v1.7.0

func (l *Logger) Entity() *logrus.Entry

func (*Logger) Error

func (l *Logger) Error(msg string)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string)

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) Panic

func (l *Logger) Panic(msg string)

func (*Logger) V

func (l *Logger) V(level logger.Level) logger.StdLogger

func (*Logger) Warn

func (l *Logger) Warn(msg string)

func (*Logger) WithFields added in v1.5.5

func (l *Logger) WithFields(field logger.Fields) logger.Logger

func (*Logger) WithKeyAndValues added in v1.5.5

func (l *Logger) WithKeyAndValues() logrus.FieldLogger

Jump to

Keyboard shortcuts

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