Documentation
¶
Index ¶
- type LogConfig
- type ZapLogger
- func (l *ZapLogger) Debug(args ...interface{})
- func (l *ZapLogger) Debugf(format string, args ...interface{})
- func (l *ZapLogger) Errorf(format string, args ...interface{})
- func (l *ZapLogger) GetNamedLogger(name string) *ZapLogger
- func (l *ZapLogger) Info(args ...interface{})
- func (l *ZapLogger) Infof(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapLogger ¶
type ZapLogger struct { Config LogConfig Logger *zap.SugaredLogger }
func NewZapLogger ¶
TODO: Consider a human readable text encoder for better field handeling: - https://github.com/uber-go/zap/issues/570 - https://github.com/uber-go/zap/pull/123 - TextEncoder w/ old interface: https://github.com/uber-go/zap/blob/6c2107996402d47d559199b78e1c44747fe732f9/text_encoder.go - New interface example: https://github.com/uber-go/zap/blob/c2633d6de2d6e1170ad8f150660e3cf5310067c8/zapcore/json_encoder.go - Register the encoder: https://github.com/uber-go/zap/blob/v1.15.0/encoder.go
func (*ZapLogger) GetNamedLogger ¶
Click to show internal directories.
Click to hide internal directories.