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.
โ179Mar 1, 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
Sorting:
- ๐ชต Ensure consistent code style when using log/slogโ237Feb 22, 2026Updated last week
- Fast and customizable object pool, ideal for workloads that want to create less memory.โ33Feb 22, 2026Updated last week
- ๐ Enforce field tags in (un)marshaled structsโ40Jan 19, 2026Updated last month
- ๐จ slog: Attribute formattingโ212Updated this week
- A linter for logr,klog,zap that can also works with golangci-lint as a pluginโ17Apr 10, 2025Updated 10 months ago
- Type safe enums for Go without code generation or reflectionโ452Aug 17, 2025Updated 6 months ago
- A human-friendly (but still largely structured) slog.Handlerโ13Feb 17, 2026Updated 2 weeks ago
- 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
- ๐ฅ Error handling library with context, assertion, stack trace and source fragmentsโ860Updated this week
- a slog handler for testing that code logs expected resultsโ23Aug 8, 2024Updated last year
- Go module for fetching embeddings from embeddings providersโ56Jul 20, 2025Updated 7 months ago
- A minimal but powerful cli library for Goโ44Jan 28, 2026Updated last month
- ๐จ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...โ610Feb 2, 2026Updated last month
- Generation-based CAS cache for Go - read-time validation, self-verifying bulks, pluggable providers/codecs and multi-replica safe via Genโฆโ58Dec 16, 2025Updated 2 months ago
- A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performantโ1,246Apr 4, 2025Updated 11 months ago
- perhaps the best CORS middleware library for Goโ179Updated this week
- Dev-time observability tool for Go programs. Search logs, monitor goroutines, and track variables.โ206Nov 18, 2025Updated 3 months ago
- ๐จ slog sampling: drop repetitive log recordsโ103Updated this week
- ๐ slog.Handler that writes tinted (colorized) logsโ1,247Feb 11, 2026Updated 3 weeks ago
- Zero-effort, concise configuration management that avoids boilerplate and repetitive actions.โ199Jul 8, 2025Updated 7 months ago
- The Go Tripper package provides functionality for monitoring the status of a circuit. Track success and failure counts, implement circuitโฆโ15Apr 21, 2024Updated last year
- A linter that handle directives into `go.mod`.โ17Dec 4, 2025Updated 3 months ago
- The project is a utility written in the Go and Bash programming languages that extends the command line capabilities when working with thโฆโ12Sep 6, 2024Updated last year
- Analyzer: CommentMap utilities for static analysis in Goโ12Nov 15, 2024Updated last year
- A modern, generics-first fluent HTTP client for Go - built on req, designed for ergonomic, type-safe APIs with powerful defaults and escaโฆโ98Feb 27, 2026Updated last week
- Wrapper for simple golang preprocessorsโ28Apr 15, 2025Updated 10 months ago
- A golang library that unify all the llm into one interface APIโ50Dec 13, 2025Updated 2 months ago
- Low-level Go interface to SQLite 3 using cgoโ30Feb 14, 2026Updated 3 weeks ago
- random scripts for random thingsโ13Updated this week
- โก VSCode extension to make import/installing Go Packages easier and faster.โ14May 4, 2025Updated 10 months ago
- Generate Go enum encodingโ15Sep 11, 2025Updated 5 months ago
- ๐ Java Properties format contents parse, marshal and unmarshal library. Java Properties ๆ ผๅผๅ ๅฎน็่งฃๆๅจ๏ผ็ผ็ ่งฃ็ ๅบโ12Feb 21, 2026Updated 2 weeks ago
- string adapter for Casbin https://github.com/casbin/casbinโ16Feb 5, 2024Updated 2 years ago
- Period is a type that represents ISO-8601 periods of time.โ16Feb 13, 2026Updated 3 weeks ago
- โฐ Easily schedule non-blocking tasks in Go. Supports durations, specific times and intervals.โ11Mar 6, 2025Updated last year
- c-binding free API for golang to communicate with the socket subsystem of netfilterโ12Sep 20, 2025Updated 5 months ago
- Live reload for Go and other languagesโ24Dec 16, 2025Updated 2 months ago
- Accept Interfaces, Return Concrete Typesโ80Feb 23, 2026Updated last week
- Package gostackparse parses goroutines stack traces as produced by panic() or debug.Stack() at ~300 MiB/s.โ126Updated this week