logger

package
v0.0.0-...-fa14253 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logrus

type Logrus struct {
	logrus.FieldLogger
}

func NewLogrus

func NewLogrus(logger logrus.FieldLogger) *Logrus

NewLogrus creates a wrapped Logrus logger

func (*Logrus) Debugw

func (l *Logrus) Debugw(msg string, keysAndValues ...interface{})

Debugw is a shim stand-in for when we have real debug-level logging support

func (*Logrus) Errorw

func (l *Logrus) Errorw(msg string, keysAndValues ...interface{})

Errorw is a shim stand-in for when we have real error-level logging support

func (*Logrus) Infow

func (l *Logrus) Infow(msg string, keysAndValues ...interface{})

Infow is a shim stand-in for when we have real info-level logging support

func (*Logrus) Panicw

func (l *Logrus) Panicw(msg string, keysAndValues ...interface{})

Panicw is a shim stand-in for when we have real panic-level logging support

func (*Logrus) Trace

func (l *Logrus) Trace(args ...interface{})

Trace is a shim stand-in for when we have real trace-level logging support

func (*Logrus) Tracef

func (l *Logrus) Tracef(format string, values ...interface{})

Tracef is a shim stand-in for when we have real trace-level logging support

func (*Logrus) Tracew

func (l *Logrus) Tracew(msg string, keysAndValues ...interface{})

Tracew is a shim stand-in for when we have real trace-level logging support

func (*Logrus) Warnw

func (l *Logrus) Warnw(msg string, keysAndValues ...interface{})

Warnw is a shim stand-in for when we have real warn-level logging support

type ZapLogger

type ZapLogger struct {
	*zap.SugaredLogger
}

func NewZapLogger

func NewZapLogger(logger *zap.SugaredLogger) *ZapLogger

NewZapLogger creates a wrapped zap logger

func (*ZapLogger) Trace

func (zl *ZapLogger) Trace(args ...interface{})

Trace is a shim stand-in for when we have real trace-level logging support

func (*ZapLogger) Tracef

func (zl *ZapLogger) Tracef(format string, values ...interface{})

Tracef is a shim stand-in for when we have real trace-level logging support

func (*ZapLogger) Tracew

func (zl *ZapLogger) Tracew(msg string, keysAndValues ...interface{})

Tracew is a shim stand-in for when we have real trace-level logging support

Jump to

Keyboard shortcuts

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