Use golang structured logging (slog) with context. Add and retrieve logger to and from context. Add attributes to context. Automatically read any custom context values, such as OpenTelemetry TraceID.
β193Jul 25, 2026Updated this week
Alternatives and similar repositories for slog-context
Users that are interested in slog-context are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- TUI for managing golang-migrate migrationsβ16Jun 6, 2024Updated 2 years ago
- πͺ΅ Ensure consistent code style when using log/slogβ264Jul 14, 2026Updated 2 weeks ago
- The zerolint linter checks usage patterns of pointers to zero-size types in Goβ19May 5, 2026Updated 2 months ago
- A human-friendly (but still largely structured) slog.Handlerβ13Feb 17, 2026Updated 5 months ago
- π₯ Error handling library with context, assertion, stack trace and source fragmentsβ976Jul 11, 2026Updated 2 weeks ago
- Deploy to Railway using AI coding agents - Free Credits Offer β’ AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- detects nested contexts in loops or function literalsβ81Jun 26, 2026Updated last month
- π¦ Rust-like `println!` for Go with Superpowers πβ16Jan 18, 2025Updated last year
- π slog.Handler that writes tinted (colorized) logsβ1,328Jul 12, 2026Updated 2 weeks ago
- Fence-based CAS cache for Go with read-time validation, validated batch entries, pluggable providers/codecs and shared version state.