Documentation ¶
Index ¶
- func ParseLevel(level zapcore.Level) logger.Level
- type Option
- type Options
- type ZapWrapper
- func (l *ZapWrapper) Debug(v ...any)
- func (l *ZapWrapper) Debugf(format string, v ...any)
- func (l *ZapWrapper) Error(v ...any)
- func (l *ZapWrapper) Errorf(format string, v ...any)
- func (l *ZapWrapper) Info(v ...any)
- func (l *ZapWrapper) Infof(format string, v ...any)
- func (l *ZapWrapper) Init() error
- func (l *ZapWrapper) Panic(v ...any)
- func (l *ZapWrapper) Panicf(format string, v ...any)
- func (l *ZapWrapper) Warn(v ...any)
- func (l *ZapWrapper) Warnf(format string, v ...any)
- func (l *ZapWrapper) WithError(err error) logger.Logger
- func (l *ZapWrapper) WithField(key string, value any) logger.Logger
- func (l *ZapWrapper) WithFields(fields logger.Fields) logger.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func WithEncoder ¶
func WithOutput ¶
func WithOutput(output zapcore.WriteSyncer) Option
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) WithFields ¶
func (l *ZapWrapper) WithFields(fields logger.Fields) logger.Logger
Click to show internal directories.
Click to hide internal directories.