Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2025 v0.1.0 Jul 14, 2025 Changes in this version + func DisableScopeGlobal(scopes ...*Scope) + func EnableScope(ctx context.Context, scopes ...*Scope) context.Context + func EnableScopeGlobal(scopes ...*Scope) + func From(ctx context.Context, options ...Option) *slog.Logger + func With(ctx context.Context, logger *slog.Logger) context.Context + func WithLogLevel(ctx context.Context, level slog.Level) context.Context + type Capture struct + func NewCapture(ctx context.Context) (context.Context, *Capture) + func (c *Capture) Messages() []string + func (c *Capture) Records() []slog.Record + type Option interface + func WithCond(condition func() bool) Option + func WithFastRand() Option + func WithSampling(rate float64) Option + type Scope struct + func GetGlobalEnabledScopes() []*Scope + func NewScope(name string, options ...ScopeOption) *Scope + func NewScopeWithEnvVars(name string, envVars ...string) *Scope + func (s *Scope) Name() string + func (s *Scope) NewChild(name string, options ...ScopeOption) *Scope + func (s *Scope) NewChildWithEnvVars(name string, envVars ...string) *Scope + type ScopeOption func(*scopeConfig) + func EnabledBy(envVars ...string) ScopeOption + func EnabledMinLevel(level slog.Level) ScopeOption