Versions in this module Expand all Collapse all v0 v0.1.0 Oct 15, 2026 Changes in this version + const HealthPath + func AddLogAttrs(ctx context.Context, attrs ...slog.Attr) + func LogPanic(ctx context.Context, recovered any) + func LogRequest(ctx context.Context, levels RequestLevels, request Request) + func ParseLevel(level string) (slog.Level, error) + func TextHandler(w io.Writer, minimum slog.Level) slog.Handler + func WithLogAttrs(ctx context.Context, attrs ...slog.Attr) context.Context + func WithRequest(ctx context.Context) context.Context + type Request struct + Duration time.Duration + Method string + Panicked bool + Path string + Route string + Status int + type RequestLevels struct + Refused slog.Level + Succeeded slog.Level + type Shutdown func(context.Context) error + func Setup(ctx context.Context, serviceName, level string) (Shutdown, error)