Documentation ¶
Index ¶
- func NewLogger(opts ...logger.Option) (logger.Logger, error)
- func WithCallerSkip(i int) logger.Option
- func WithConfig(c zap.Config) logger.Option
- func WithEncoderConfig(c zapcore.EncoderConfig) logger.Option
- func WithNamespace(namespace string) logger.Option
- func WithOutput(out io.Writer) logger.Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
New builds a new logger based on options
func WithEncoderConfig ¶
func WithEncoderConfig(c zapcore.EncoderConfig) logger.Option
WithEncoderConfig pass zapcore.EncoderConfig to logger
Types ¶
Click to show internal directories.
Click to hide internal directories.