golang-samber-slog
Structured logging extensions for Golang using samber/slog — packages — multi-handler pipelines (slog-multi), log sampling (slog-sampling), attribute formatting (slog-formatter), HTTP middleware (slog-fiber, slog-gin, slog-chi, slog-echo), and backend routing (slog-datadog, slog-sentry, slog-loki, slog-syslog, slog-logstash, slog-graylog...). Apply when using or adopting slog, or when the codebase already imports…
- installs 8w
- 3,799
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 0
This is an agent skill (a SKILL.md) for Go structured logging using the samber/slog-* family of packages. It documents the pipeline model — slog-multi composition, slog-sampling, slog-formatter, HTTP middlewares for Fiber/Gin/Chi/Echo, and backend sinks like Datadog, Sentry, Loki — with rules, pitfalls, and bundled reference files.
Reach for it when your Go project uses or is adopting slog and needs correct handler ordering, sampling, and backend routing patterns.
Use it to
- Compose multi-handler slog pipelines with slog-multi
- Add log sampling as the outermost handler
- Normalize attributes with slog-formatter
- Attach HTTP request logging middleware in Fiber, Gin, Chi, or Echo
- Route logs to Datadog, Sentry, Loki, or other sinks
For Go developers using or adopting samber/slog packages
- Host repository
- samber/cc-skills-golang
- Version
- 1.1.2
- Installs, lifetime
- 37k
- Installs, 8 weeks
- 3,799
- Compatible with
- Designed for Claude Code, Codex or similar harness, and for projects using Golang.
- Licence
- MIT
- Invocable by
- user
- Host stars
- 3,283
- Host language
- Go