Documentation ¶
Index ¶
- type ZapLoggerAdapter
- func (z *ZapLoggerAdapter) Debug(msg string, fields watermill.LogFields)
- func (z *ZapLoggerAdapter) Error(msg string, err error, fields watermill.LogFields)
- func (z *ZapLoggerAdapter) Info(msg string, fields watermill.LogFields)
- func (z *ZapLoggerAdapter) Trace(msg string, fields watermill.LogFields)
- func (z *ZapLoggerAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapLoggerAdapter ¶
type ZapLoggerAdapter struct {
// contains filtered or unexported fields
}
ZapLoggerAdapter zap logger adapter
func NewZapLoggerAdapter ¶
func NewZapLoggerAdapter(logger *zap.Logger) *ZapLoggerAdapter
NewZapLoggerAdapter new zap logger adapter
func (*ZapLoggerAdapter) Debug ¶
func (z *ZapLoggerAdapter) Debug(msg string, fields watermill.LogFields)
Debug zap logger adapter debug
func (*ZapLoggerAdapter) Error ¶
func (z *ZapLoggerAdapter) Error(msg string, err error, fields watermill.LogFields)
Error zap logger adapter error
func (*ZapLoggerAdapter) Info ¶
func (z *ZapLoggerAdapter) Info(msg string, fields watermill.LogFields)
Info zap logger adapter info
func (*ZapLoggerAdapter) Trace ¶
func (z *ZapLoggerAdapter) Trace(msg string, fields watermill.LogFields)
Trace zap logger
func (*ZapLoggerAdapter) With ¶
func (z *ZapLoggerAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
With zap logger adapter with
Click to show internal directories.
Click to hide internal directories.