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:
- For Go package docs, symbols, versions, importers, and known vulnerabilities, â See
samber/cc-skills-golang@golang-pkg-go-devskill (godig), preferred over Context7 for Go package facts. - To navigate this library's usage in your own code (definitions, call sites, diagnostics), â See
samber/cc-skills-golang@golang-goplsskill (gopls). - Context7 remains a fallback for docs not indexed on pkg.go.dev.
The Pipeline Model
Installs: 40.8K | GitHub stars: 4.0K | First seen: Mar 22, 2026


