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
Functions ¶
func NewSugaredLogger ¶ added in v0.5.2
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 FullCaller bool NoDisclaimer bool Sampling *zap.SamplingConfig }
Config for logger
func NewLoggerConfig ¶ added in v0.5.0
NewLoggerConfig returns logger config
func (Config) SafeFormat ¶ added in v0.5.0
SafeFormat returns valid logger output format use json by default
Click to show internal directories.
Click to hide internal directories.