zaplogger

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapConfig

type ZapConfig struct {
	Development    bool `json:"development"`
	LogFile        string
	CallerSkip     int
	DisableConsole bool
}

type ZapLogger

type ZapLogger struct {
	*zap.Logger
	app.LogContext
	// contains filtered or unexported fields
}

func NewZapLogger

func NewZapLogger(config *ZapConfig) (_ *ZapLogger, err error)

func (*ZapLogger) DPanic

func (l *ZapLogger) DPanic(params ...any)

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(params ...any)

func (*ZapLogger) Error

func (l *ZapLogger) Error(params ...any)

func (*ZapLogger) Errorf

func (l *ZapLogger) Errorf(msg string, params ...any)

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(params ...any)

func (*ZapLogger) Info

func (l *ZapLogger) Info(params ...any)

func (*ZapLogger) Infof

func (l *ZapLogger) Infof(msg string, params ...any)

func (*ZapLogger) Panic

func (l *ZapLogger) Panic(params ...any)

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(params ...any)

func (*ZapLogger) WithContext

func (l *ZapLogger) WithContext(context app.LogContext, callerSkips ...int) app.Logger

Jump to

Keyboard shortcuts

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