logger

package
v0.0.0-...-ff01a36 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceLoggerKey string = "service"

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	Debug(context.Context, string, ...zap.Field)
	Info(context.Context, string, ...zap.Field)
	Warn(context.Context, string, ...zap.Field)
	Error(context.Context, string, ...zap.Field)
	DPanic(context.Context, string, ...zap.Field)
	Panic(context.Context, string, ...zap.Field)
	Fatal(context.Context, string, ...zap.Field)
	WithFields(fields ...zap.Field) ILogger
	WithService(string) ILogger
	ToZap() *zap.Logger
	ToZapCtx(context.Context) *zap.Logger
}

func DefaultLogger

func DefaultLogger(level zapcore.Level) ILogger

func NewLogger

func NewLogger(l *zap.Logger, defaultFields ...zap.Field) ILogger

Jump to

Keyboard shortcuts

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