Versions in this module Expand all Collapse all v1 v1.0.0 Jan 27, 2022 Changes in this version + const LEVEL_DEBUG + const LEVEL_ERROR + const LEVEL_INFO + const LEVEL_WARNING + const LUMBERJACK_SCHEME + func Context(ctx context.Context) *zap.Logger + func ContextWithFields(ctx context.Context, fields ...zap.Field) context.Context + func ContextWithLogger(ctx context.Context, logger *zap.Logger) context.Context + func ContextualHandler(opts ...ContextualOption) func(h http.Handler) http.Handler + func Initialize(opts ...LoggerOption) error + func RequestIDFrom(ctx context.Context) (string, error) + func WithRequestID(ctx context.Context, id string) context.Context + type ContextualOption func(http.Handler) + func WithBaseLogger(logger *zap.Logger) ContextualOption + func WithHeaders(headers ...string) ContextualOption + type LoggerOption func(*config) + func WithDevelopment() LoggerOption + func WithLogFile(file string) LoggerOption + func WithLogFileCompress() LoggerOption + func WithLogFileMaxAge(age int) LoggerOption + func WithLogFileMaxBackups(backups int) LoggerOption + func WithLogFileMaxSize(size int) LoggerOption + func WithLogLevel(level string) LoggerOption