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.
β185Mar 20, 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:
- πͺ΅ Ensure consistent code style when using log/slogβ243Mar 17, 2026Updated last week
- A human-friendly (but still largely structured) slog.Handlerβ13Feb 17, 2026Updated last month
- TUI for managing golang-migrate migrationsβ16Jun 6, 2024Updated last year
- π¨ slog: Attribute formattingβ212Mar 1, 2026Updated 3 weeks ago
- A linter for logr,klog,zap that can also works with golangci-lint as a pluginβ17Apr 10, 2025Updated 11 months ago
- 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.
- Type safe enums for Go without code generation or reflectionβ453Aug 17, 2025Updated 7 months ago
- π₯ Error handling library with context, assertion, stack trace and source fragmentsβ889Updated this week
- Fast and customizable object pool, ideal for workloads that want to create less memory.β33Feb 22, 2026Updated last month
- The Golang linter that checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error` or `Errors`.β26Feb 1, 2026Updated last month
- A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performantβ1,247Apr 4, 2025Updated 11 months ago
- Generation-based CAS cache for Go with read-time validation, validated batch entries, pluggable providers/codecs, and shared invalidationβ¦β60Updated this week
- Zero-effort, concise configuration management that avoids boilerplate and repetitive actions.β200Jul 8, 2025Updated 8 months ago
- π Enforce field tags in (un)marshaled structsβ40Jan 19, 2026Updated 2 months ago
- Low-level Go interface to SQLite 3 using cgoβ30Feb 14, 2026Updated last month
- Managed Database hosting by DigitalOcean β’ AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- π slog.Handler that writes tinted (colorized) logsβ1,257Feb 11, 2026Updated last month
- In memory cache with sieve eviction algorithm in pure Go.β47Mar 2, 2026Updated 3 weeks ago
- β‘ VSCode extension to make import/installing Go Packages easier and faster.β14May 4, 2025Updated 10 months ago
- Dev-time observability tool for Go programs. Search logs, monitor goroutines, and track variables.β207Nov 18, 2025Updated 4 months ago
- like cadvisor but simpleβ17Oct 21, 2025Updated 5 months ago
- π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...β611Feb 2, 2026Updated last month
- A tool for monitoring Go's finalizer routine responsivenessβ37Jul 19, 2025Updated 8 months ago
- Go module for fetching embeddings from embeddings providersβ56Jul 20, 2025Updated 8 months ago
- β15Dec 7, 2022Updated 3 years ago
- Managed Database hosting by DigitalOcean β’ AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- a slog handler for testing that code logs expected resultsβ23Aug 8, 2024Updated last year
- Generate deterministic semantic fingerprints for Go functions. Detect xz-style backdoors and verify semantic equivalence using Static Sinβ¦β33Mar 19, 2026Updated last week
- Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors.β308Jun 14, 2025Updated 9 months ago
- A minimal but powerful cli library for Goβ45Jan 28, 2026Updated last month
- A zero-allocation debouncerβ35Jun 21, 2025Updated 9 months ago
- Context aware slogβ31Mar 9, 2026Updated 2 weeks ago
- Go Linter π§ (available in golangci-lint) that checks the order of methods and constructorsβ17Mar 16, 2026Updated last week
- Go Transactional Outbox Libraryβ17Feb 10, 2026Updated last month
- A modern, generics-first fluent HTTP client for Go - built on req, designed for ergonomic, type-safe APIs with powerful defaults and escaβ¦β97Mar 8, 2026Updated 2 weeks 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.
- π¦ Rust-like `println!` for Go with Superpowers πβ16Jan 18, 2025Updated last year
- Live reload for Go and other languagesβ24Dec 16, 2025Updated 3 months ago
- π¨ slog sampling: drop repetitive log recordsβ102Mar 1, 2026Updated 3 weeks ago
- Framework for pipeline execution with structured parallelism, retriability, load balancing and more.β32Jun 2, 2025Updated 9 months ago
- β11Dec 16, 2024Updated last year
- Elegant and powerful Go enums with zero code generationβ41Jan 2, 2025Updated last year
- Ark -- Archetype-based Entity Component System (ECS) for Go.β227Jan 20, 2026Updated 2 months ago