zap

package
v0.0.0-...-56195c4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(conf types.Conf) types.XinLogger

func NewZapLogger

func NewZapLogger(logger *zap.Logger, conf types.Conf) types.XinLogger

Types

type ZapLogger

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

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(msg string, args ...types.Field)

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg string, args ...types.Field)

func (*ZapLogger) FlushTraceId

func (l *ZapLogger) FlushTraceId() error

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg string, args ...types.Field)

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg string, args ...types.Field)

Jump to

Keyboard shortcuts

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