Versions in this module Expand all Collapse all v1 v1.0.0 Jun 24, 2026 Changes in this version + func ExtractTraceID(ctx context.Context) string + func InjectTraceID(ctx context.Context, traceID string) context.Context + func New(opts ...Option) *slog.Logger + type Config struct + Level *slog.LevelVar + Output io.Writer + RedactKeys []string + Source bool + TraceID bool + type Option func(*Config) + func WithDynamicLevel(lvl *slog.LevelVar) Option + func WithLevel(level string) Option + func WithOutput(w io.Writer) Option + func WithRedaction(keys ...string) Option + func WithSource(enabled bool) Option + func WithTraceID(enabled bool) Option Other modules containing this package github.com/kishan-thanki/logger/v2