Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("zapfx", fx.Provide( config.ProvideLogConfig, NewZapLogger, fx.Annotate( NewZapLogger, fx.As(new(logger.Logger))), ), )
Module provided to fxlog https://uber-go.github.io/fx/modules.html
Functions ¶
This section is empty.
Types ¶
type ZapLogger ¶
type ZapLogger interface { logger.Logger InternalLogger() *zap.Logger DPanic(args ...interface{}) DPanicf(template string, args ...interface{}) Sync() error }
func NewZapLogger ¶
func NewZapLogger( cfg *config2.LogOptions, env environment.Environment, ) ZapLogger
NewZapLogger create new zap logger
Click to show internal directories.
Click to hide internal directories.