Documentation ¶
Index ¶
- func New(logger *zap.Logger) logx.Adapter
- type ZapAdapter
- func (z *ZapAdapter) Debug(v ...any)
- func (z *ZapAdapter) Debugf(format string, v ...any)
- func (z *ZapAdapter) Error(v ...any)
- func (z *ZapAdapter) Errorf(format string, v ...any)
- func (z *ZapAdapter) Fatal(v ...any)
- func (z *ZapAdapter) Fatalf(format string, v ...any)
- func (z *ZapAdapter) Info(v ...any)
- func (z *ZapAdapter) Infof(format string, v ...any)
- func (z *ZapAdapter) Notice(v ...any)
- func (z *ZapAdapter) Noticef(format string, v ...any)
- func (z *ZapAdapter) Panic(v ...any)
- func (z *ZapAdapter) Panicf(format string, v ...any)
- func (z *ZapAdapter) Print(v ...any)
- func (z *ZapAdapter) Printf(format string, v ...any)
- func (z *ZapAdapter) Warning(v ...any)
- func (z *ZapAdapter) Warningf(format string, v ...any)
- func (z *ZapAdapter) WithField(name string, value any) logx.Logger
- func (z *ZapAdapter) WithFormatter(formatter logx.Formatter) logx.Adapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZapAdapter ¶
type ZapAdapter struct {
// contains filtered or unexported fields
}
ZapAdapter implementation to wrap a format Logger
func (*ZapAdapter) Debug ¶
func (z *ZapAdapter) Debug(v ...any)
func (*ZapAdapter) Debugf ¶
func (z *ZapAdapter) Debugf(format string, v ...any)
func (*ZapAdapter) Error ¶
func (z *ZapAdapter) Error(v ...any)
func (*ZapAdapter) Errorf ¶
func (z *ZapAdapter) Errorf(format string, v ...any)
func (*ZapAdapter) Fatal ¶
func (z *ZapAdapter) Fatal(v ...any)
func (*ZapAdapter) Fatalf ¶
func (z *ZapAdapter) Fatalf(format string, v ...any)
func (*ZapAdapter) Info ¶
func (z *ZapAdapter) Info(v ...any)
func (*ZapAdapter) Infof ¶
func (z *ZapAdapter) Infof(format string, v ...any)
func (*ZapAdapter) Notice ¶
func (z *ZapAdapter) Notice(v ...any)
func (*ZapAdapter) Noticef ¶
func (z *ZapAdapter) Noticef(format string, v ...any)
func (*ZapAdapter) Panic ¶
func (z *ZapAdapter) Panic(v ...any)
func (*ZapAdapter) Panicf ¶
func (z *ZapAdapter) Panicf(format string, v ...any)
func (*ZapAdapter) Print ¶
func (z *ZapAdapter) Print(v ...any)
func (*ZapAdapter) Printf ¶
func (z *ZapAdapter) Printf(format string, v ...any)
func (*ZapAdapter) Warning ¶
func (z *ZapAdapter) Warning(v ...any)
func (*ZapAdapter) Warningf ¶
func (z *ZapAdapter) Warningf(format string, v ...any)
func (*ZapAdapter) WithFormatter ¶
func (z *ZapAdapter) WithFormatter(formatter logx.Formatter) logx.Adapter
Click to show internal directories.
Click to hide internal directories.