zap

package
v0.0.0-...-04c4af4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(level zapcore.Level) logger.Level

Types

type Option

type Option func(*Options)

func WithEncoder

func WithEncoder(encoder zapcore.Encoder) Option

func WithLevel

func WithLevel(level zapcore.Level) Option

func WithOutput

func WithOutput(output zapcore.WriteSyncer) Option

type Options

type Options struct {
	Level   zapcore.Level
	Encoder zapcore.Encoder
	Output  zapcore.WriteSyncer
}

type ZapWrapper

type ZapWrapper struct {
	providers.AbstractProvider
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *ZapWrapper

func (*ZapWrapper) Debug

func (l *ZapWrapper) Debug(v ...any)

func (*ZapWrapper) Debugf

func (l *ZapWrapper) Debugf(format string, v ...any)

func (*ZapWrapper) Error

func (l *ZapWrapper) Error(v ...any)

func (*ZapWrapper) Errorf

func (l *ZapWrapper) Errorf(format string, v ...any)

func (*ZapWrapper) Info

func (l *ZapWrapper) Info(v ...any)

func (*ZapWrapper) Infof

func (l *ZapWrapper) Infof(format string, v ...any)

func (*ZapWrapper) Init

func (l *ZapWrapper) Init() error

func (*ZapWrapper) Panic

func (l *ZapWrapper) Panic(v ...any)

func (*ZapWrapper) Panicf

func (l *ZapWrapper) Panicf(format string, v ...any)

func (*ZapWrapper) Warn

func (l *ZapWrapper) Warn(v ...any)

func (*ZapWrapper) Warnf

func (l *ZapWrapper) Warnf(format string, v ...any)

func (*ZapWrapper) WithError

func (l *ZapWrapper) WithError(err error) logger.Logger

func (*ZapWrapper) WithField

func (l *ZapWrapper) WithField(key string, value any) logger.Logger

func (*ZapWrapper) WithFields

func (l *ZapWrapper) WithFields(fields logger.Fields) logger.Logger

Jump to

Keyboard shortcuts

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