logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOutput

func NewOutput(cfg sharedconfiginterface.Configurator) (out *os.File, cancel func(), err error)

Types

type Logrus

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

func NewLogrus

func NewLogrus(
	cfg sharedloggerinterface.Configurator,
	output loggerinterface.Outputer,
) (
	logger *Logrus,
	cancel loggerinterface.CancelFunc,
	err error,
)

func (*Logrus) Debug

func (l *Logrus) Debug(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) DebugMsg

func (l *Logrus) DebugMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

func (*Logrus) Error

func (l *Logrus) Error(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) ErrorMsg

func (l *Logrus) ErrorMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

func (*Logrus) Fatal

func (l *Logrus) Fatal(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) FatalMsg

func (l *Logrus) FatalMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

func (*Logrus) Info

func (l *Logrus) Info(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) InfoMsg

func (l *Logrus) InfoMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

func (*Logrus) Panic

func (l *Logrus) Panic(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) PanicMsg

func (l *Logrus) PanicMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

func (*Logrus) Warning

func (l *Logrus) Warning(ctx context.Context, err error, fields loggerinterface.Fields) error

func (*Logrus) WarningMsg

func (l *Logrus) WarningMsg(ctx context.Context, msg string, fields loggerinterface.Fields)

Directories

Path Synopsis
config

Jump to

Keyboard shortcuts

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