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 18, 2026Updated last 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β274Sep 15, 2026Updated last week
- 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 7 months ago
- π₯ Error handling library with context, assertion, stack trace and source fragmentsβ992Sep 14, 2026Updated last week
- 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β83Sep 11, 2026Updated 2 weeks ago
- π¦ Rust-like `println!` for Go with Superpowers πβ16Jan 18, 2025Updated last year
- π slog.Handler that writes tinted (colorized) logsβ1,360Jul 12, 2026Updated 2 months ago
- Fence based CAS for Go with read-time validation, stale-write protection, pluggable codecs, and local or Redis backends.β68Sep 11, 2026Updated 2 weeks ago
- In memory cache with sieve eviction algorithm in pure Go.β64Sep 19, 2026Updated last week
- Π‘hecks that the Structes are created by the Factoryβ15Sep 5, 2026Updated 3 weeks ago
- π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...β638Sep 1, 2026Updated 3 weeks ago
- Type safe enums for Go without code generation or reflectionβ463Aug 17, 2025Updated last year
- ποΈ Streams & Reactive Programming paradigm for Go: declarative and composable API for event-driven applicationsβ687Updated this week
- Virtual machines for every use case on DigitalOcean β’ AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- 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,β¦β169Updated this week
- 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,866Updated this week
- perhaps the best CORS middleware library for Goβ225Updated this week
- Zero-effort, concise configuration management that avoids boilerplate and repetitive actions.β200Jul 19, 2026Updated 2 months ago
- 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,782Aug 31, 2026Updated 3 weeks ago
- The go-xerrors is an idiomatic and lightweight package that provides a set of functions to make working with errors easier.β80Aug 13, 2026Updated last month
- Wordpress hosting with auto-scaling - Free Trial Offer β’ AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- JSON benchmarks to compare different Go JSON implementationsβ115Sep 6, 2025Updated last year
- π¨ slog: Attribute formattingβ226Sep 1, 2026Updated 3 weeks ago
- Tool for analyzing behavior change risk in golang module updatesβ16Updated this week
- 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 3 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β138Updated this week
- Fault tolerance and resilience patterns for Goβ2,254Aug 16, 2026Updated last month
- 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
- Managed hosting for WordPress and PHP on Cloudways β’ AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Regular Expression Researchβ12Jul 6, 2022Updated 4 years ago
- β26Nov 11, 2025Updated 10 months ago
- Fast and customizable object pool, ideal for workloads that want to create less memory.β33Mar 28, 2026Updated 6 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 Transport for http.Client that will cache responses according to the HTTP RFCβ54Jun 24, 2026Updated 3 months ago