
Golang Samber Slog
Composable slog.Handler packages for Go structured logging: pipelines, sampling, formatting, and backend sinks.
- skills.sh installs
- 40.1K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers three core pipeline libraries (
slog-multi,slog-sampling,slog-formatter) plus HTTP middlewares for Gin, Echo, Fiber, Chi, and net/http - Includes backend sinks for Datadog, Sentry, Loki, Syslog, Logstash, Graylog, and about 15 other destinations
- Defines a canonical order of sampling, then formatting, then routing, then sinks, so noise is dropped before formatting work is done
- Designed for Go 1.21+ projects adopting slog or already importing any
github.com/samber/slog-*package
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-samber-slog -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go logging architect. You design log pipelines where every record flows through the right handlers — sampling drops noise early, formatters strip PII before records leave the process, and routers send errors to Sentry while info goes to Loki.
samber/slog-**** — Structured Logging Pipeline for Go
20+ composable slog.Handler packages for Go 1.21+. Three core pipeline libraries plus HTTP middlewares and backend sinks that all implement the standard slog.Handler interface.
Official resources:
- github.com/samber/slog-multi — handler composition
- github.com/samber/slog-sampling — throughput control
- github.com/samber/slog-formatter — attribute transformation
This skill is not exhaustive — refer to library documentation and code examples for more information:
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Go, Backend & APIs
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Samber Oops40K
- Golang Samber Mo40K
- Golang Samber Hot40K
- Golang Samber Ro39.9K
- Golang Spf13 Cobra39K
- Golang Swagger39K
- Golang Graphql38.8K
- Golang Google Wire38.7K
- Golang Spf13 Viper38.7K
- Golang Uber Fx38.4K
- Golang Uber Dig38.4K
- Golang How To38.3K
- Golang Linter26.5K
- Golang Pkg Go Dev13.7K
- Golang Refactoring13.3K
- Golang Gopls12.9K
- Golang Code Style46.6K
- Golang Testing45.9K
- Golang Error Handling45.9K
- Golang Security44.7K
- Golang Design Patterns44.3K
- Golang Performance44.1K
- Golang Concurrency44.1K
- Golang Context43.2K
Similar to Golang Samber Slog
More Go
go-loggingcxuu/golang-skills1.1K installsStructured Go logging guide for slog, log levels, request-scoped context, and what to keep out of logs.
golang-samber-rosamber/cc-skills-golang39.9K installsReactive streams for Go built on samber/ro, with 150+ type-safe operators and five subject types.
golang-error-handlingsamber/cc-skills-golang45.9K installsIdiomatic Go error handling covering wrapping, inspection, the single handling rule, and production-grade slog and samber/oops logging.
sentry-go-sdkgetsentry/sentry-for-ai2.3K installsOfficial Go SDK setup wizard for error monitoring, tracing, logging, metrics, and crons in Go apps.
golang-observability-opentelemetrybobmatnyc/claude-mpm-skills430 installsGo observability guide covering OpenTelemetry tracing, Prometheus metrics, and slog structured logging for microservices.
application-loggingaj-geddes/useful-ai-prompts503 installsStructured logging guide for Node.js, Python, Express, Flask, and ELK pipelines with clear do and don't rules.