Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LoggerAtomicLevel = zap.NewAtomicLevelAt(zapcore.DebugLevel)
)
Functions ¶
func NewAndInitLogger ¶
func NewAndInitLogger(opts ...zap.Option) *zap.SugaredLogger
NewAndInitLogger create SugaredLogger with the filename, line number, and function name of zap's caller and set in developyment mode
func ZapLoggerToSugaredLogger ¶ added in v1.1.0
func ZapLoggerToSugaredLogger(l *zap.Logger) *zap.SugaredLogger
Types ¶
Click to show internal directories.
Click to hide internal directories.