Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = module.Module{ {Constructor: NewLoggerConfig}, {Constructor: NewLogger}, {Constructor: NewStdLogger}, {Constructor: NewSugaredLogger}, }
Module of loggers nolint:gochecknoglobals
Functions ¶
func NewSugaredLogger ¶
func NewSugaredLogger(log *zap.Logger) *zap.SugaredLogger
NewSugaredLogger converts from zap.Logger.
Types ¶
type Config ¶
type Config struct { Level string TraceLevel string Format string Debug bool Color bool NoCaller bool FullCaller bool NoDisclaimer bool Sampling *zap.SamplingConfig }
Config for logger.
func NewLoggerConfig ¶
NewLoggerConfig returns logger config.
func (Config) SafeFormat ¶
SafeFormat returns valid logger output format use json by default. nolint:goconst
Click to show internal directories.
Click to hide internal directories.