Versions in this module Expand all Collapse all v2 v2.2.0 Sep 17, 2026 v2.1.1 Dec 9, 2025 Changes in this version + func FromContext(ctx context.Context) (*zap.Logger, error) + func WithContext(ctx context.Context, logger *zap.Logger) context.Context v2.0.0 Jun 18, 2023 Changes in this version + const ModeRecordAll + const ModeSampled + func GetLogger(mode, logLevel, encoding string, showFullCaller bool, callerSkip int, ...) *zap.Logger + func Load(ctx context.Context, loggerCfg cfgTY.LoggerConfig, component string) context.Context