logger

package
v0.0.0-...-0940e79 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	Infof(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	DPanicf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})

	Info(args ...interface{})
	Debug(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	DPanic(args ...interface{})
	Panic(args ...interface{})
	Fatal(args ...interface{})
}

func NewILogger

func NewILogger() ILogger

type Logrus

type Logrus struct {
	*log.Logger
}

func (*Logrus) DPanic

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

func (*Logrus) DPanicf

func (l *Logrus) DPanicf(format string, args ...interface{})

func (*Logrus) Setup

func (l *Logrus) Setup(ctx context.Context, _ ...gobs.IService) error

Setup implements gobs.IServiceSetup.

func (*Logrus) Start

func (l *Logrus) Start(c context.Context) error

func (*Logrus) Stop

func (l *Logrus) Stop(c context.Context) error

type ZapLogger

type ZapLogger struct {
	*zap.SugaredLogger
}

func (*ZapLogger) Setup

func (l *ZapLogger) Setup(c context.Context, _ ...gobs.IService) error

func (*ZapLogger) Start

func (l *ZapLogger) Start(c context.Context) error

func (*ZapLogger) Stop

func (l *ZapLogger) Stop(c context.Context) error

Jump to

Keyboard shortcuts

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