Documentation ¶
Index ¶
- func NewLogger(opts ...logger.Option) (logger.Logger, error)
- func WithConfig(c zap.Config) logger.Option
- func WithEncoderConfig(c zapcore.EncoderConfig) logger.Option
- func WithLogger(zapLogger *zap.Logger) logger.Option
- func WithNamespace(namespace string) logger.Option
- func WithOptions(opts ...zap.Option) logger.Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEncoderConfig ¶
func WithEncoderConfig(c zapcore.EncoderConfig) logger.Option
WithEncoderConfig pass zapcore.EncoderConfig to logger.
func WithLogger ¶
WithLogger pass zap.Logger to logger
func WithNamespace ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.