Documentation
¶
Index ¶
- Constants
- func FromContext(ctx context.Context) (*zap.Logger, error)
- func GetLogger(mode, logLevel, encoding string, showFullCaller bool, callerSkip int, ...) *zap.Logger
- func Load(ctx context.Context, loggerCfg cfgTY.LoggerConfig, component string) context.Context
- func WithContext(ctx context.Context, logger *zap.Logger) context.Context
Constants ¶
View Source
const ( ModeRecordAll = "record_all" ModeSampled = "sampled" )
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
func GetLogger(mode, logLevel, encoding string, showFullCaller bool, callerSkip int, enableStacktrace bool) *zap.Logger
GetLogger returns a logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.