Documentation ¶
Index ¶
- type ZapWrapper
- func (z *ZapWrapper) Debug(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) DebugCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) Error(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) ErrorCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) Fatal(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) FatalCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) Info(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) InfoCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) Panic(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) PanicCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) Sync() error
- func (z *ZapWrapper) Warn(msg string, fields ...wdlogger.Field)
- func (z *ZapWrapper) WarnCtx(ctx context.Context, msg string, fields ...wdlogger.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapWrapper ¶
type ZapWrapper struct {
// contains filtered or unexported fields
}
ZapWrapper обертка для Zap
func New ¶
func New(zl *zap.Logger) *ZapWrapper
func NewGELF ¶
func NewGELF(ws zapcore.WriteSyncer, level zapcore.Level) (*ZapWrapper, error)
func (*ZapWrapper) Sync ¶
func (z *ZapWrapper) Sync() error
Click to show internal directories.
Click to hide internal directories.