log

package
v0.0.0-...-6312dd6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

func Debugf

func Debugf(format string, args ...any)

func Error

func Error(args ...any)

func Errorf

func Errorf(format string, args ...any)

func Info

func Info(args ...any)

func Infof

func Infof(format string, args ...any)

func NewEntry

func NewEntry() *logrus.Entry

func Trace

func Trace(args ...any)

func Tracef

func Tracef(format string, args ...any)

func Warning

func Warning(args ...any)

func Warningf

func Warningf(format string, args ...any)

func WithField

func WithField(key string, value any) *logrus.Entry

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

func Write

func Write(p []byte) (n int, err error)

func WriterLevel

func WriterLevel(lev logrus.Level) *io.PipeWriter

Types

type Logger

type Logger interface {
	Tracef(format string, args ...any)
	Trace(args ...any)
	Debugf(format string, args ...any)
	Debug(args ...any)
	Infof(format string, args ...any)
	Info(args ...any)
	Warningf(format string, args ...any)
	Warning(args ...any)
	Errorf(format string, args ...any)
	Error(args ...any)
	WithField(key string, value any) *logrus.Entry
	WithFields(fields logrus.Fields) *logrus.Entry
	WriterLevel(logrus.Level) *io.PipeWriter
	NewEntry() *logrus.Entry
	Write(p []byte) (n int, err error)
}

func Instance

func Instance() Logger

func New

func New(w io.Writer, level logrus.Level) Logger

Jump to

Keyboard shortcuts

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