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.
β196Sep 2, 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β271Aug 18, 2026Updated 3 weeks ago
- The zerolint linter checks usage patterns of pointers to zero-size types in Goβ19May 5, 2026Updated 4 months ago
- A human-friendly (but still largely structured) slog.Handlerβ13Feb 17, 2026Updated 6 months ago
- π₯ Error handling library with context, assertion, stack trace and source fragmentsβ986Updated this week
- Deploy on Railway without the complexity - Free Credits Offer β’ AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- detects nested contexts in loops or function literalsβ81Jul 28, 2026Updated last month
- π¦ Rust-like `println!` for Go with Superpowers πβ16Jan 18, 2025Updated last year
- π slog.Handler that writes tinted (colorized) logsβ1,351Jul 12, 2026Updated last month
- Fence based CAS for Go with read-time validation, stale-write protection, pluggable codecs, and local or Redis backends.β68Sep 1, 2026Updated last week
- In memory cache with sieve eviction algorithm in pure Go.β64Aug 6, 2026Updated last month
- Π‘hecks that the Structes are created by the Factoryβ15Updated this week
- π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...β637Updated this week
- Type safe enums for Go without code generation or reflectionβ462Aug 17, 2025Updated last year
- ποΈ Streams & Reactive Programming paradigm for Go: declarative and composable API for event-driven applicationsβ682Updated this week
- GPU virtual machines on DigitalOcean Gradient AI β’ AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- protoc plugin to publish protobuf messages with Watermillβ12May 6, 2026Updated 4 months ago
- High-performance configuration management framework for Go applications with zero-allocation performance, universal format support (JSON,β¦β169Aug 22, 2026Updated 2 weeks ago
- A linter for logr,klog,zap that can also works with golangci-lint as a pluginβ16Updated this week
- Go toolkit for clean, composable, channel-based concurrencyβ1,853Updated this week
- perhaps the best CORS middleware library for Goβ224Updated this week
- Zero-effort, concise configuration management that avoids boilerplate and repetitive actions.β200Jul 19, 2026Updated last month
- Package goldentest makes it easy to build tests that compare outputs from a system under test against version control-managed reference fβ¦β17May 28, 2025Updated last year
- SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLiteβ1,779Aug 31, 2026Updated last week
- The go-xerrors is an idiomatic and lightweight package that provides a set of functions to make working with errors easier.β80Aug 13, 2026Updated 3 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.
- JSON benchmarks to compare different Go JSON implementationsβ112Sep 6, 2025Updated last year
- π¨ slog: Attribute formattingβ226Sep 1, 2026Updated last week
- Tool for analyzing behavior change risk in golang module updatesβ16Aug 24, 2026Updated 2 weeks ago
- A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performantβ1,283Apr 4, 2025Updated last year
- devslog - Go slog.Handler for developmentβ210Jun 19, 2026Updated 2 months ago
- An implementation of a `Nullable` type for JSON bodies, indicating whether the field is absent, set to null, or set to a valueβ137Updated this week
- Fault tolerance and resilience patterns for Goβ2,246Aug 16, 2026Updated 3 weeks ago
- A collection of awesome Mage and Magefile resourcesβ44Nov 19, 2023Updated 2 years ago
- Configure slog log level per-package via an env var.β19Aug 28, 2023Updated 3 years ago
- Simple, predictable pricing with DigitalOcean hosting β’ AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- Regular Expression Researchβ12Jul 6, 2022Updated 4 years ago
- β26Nov 11, 2025Updated 9 months ago
- Fast and customizable object pool, ideal for workloads that want to create less memory.β33Mar 28, 2026Updated 5 months ago
- A simplified, generic, entity based web library for golang that's drop in compatible with net/httpβ10Jul 14, 2023Updated 3 years ago
- Analyzer: fourcetypeassert finds type assertions which did forcelyβ49Feb 13, 2025Updated last year
- pgxjob provides a job queue implementation using PostgreSQL.β18Aug 16, 2023Updated 3 years ago
- A utility for parsing Common and Combined Log Format (CLF) log files.β32Mar 29, 2025Updated last year