
golang-samber-slog
Structured logging extensions for Golang using samber/slog-**** packages
by samberFree
Description
golang-samber-slog is an agent skill from the samber cc-skills-golang collection for building structured logging pipelines in Go with the samber/slog family of packages. These are composable handlers that implement the standard slog.Handler interface, for Go 1.21 and later. The skill covers multi-handler pipelines through slog-multi, log sampling through slog-sampling to drop repetitive noise early, attribute handling, HTTP middleware, and backend sinks for sending records to external systems. Its persona is a logging architect who designs pipelines in which each record reaches the right handlers: sampling drops noise early, formatters remove personal data before records leave the process, and routers send errors to an error tracker while informational records go to a log store. The skill's reference material points to the individual packages on GitHub for handler composition and other parts. It is useful for teams that run Go services and want logs that are cheap, safe and useful for on-call engineers, rather than a single handler writing everything to one place. The skill notes that it is not exhaustive, so the agent should consult each package's documentation for current signatures. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-slog.…
Highlights
- Composable slog.Handler packages
- Multi-handler pipelines
- Log sampling to drop noise
- Personal data removed before output
- Routing errors and info separately
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-samber-slog.
People also visit

python-observability
Python observability patterns including structured logging, metrics

golang-observability
Golang everyday observability — the always-on signals in production

observability-and-instrumentation
Instruments code so production behavior is visible and diagnosable

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-samber-slog FAQ
What does this skill cover?
Structured logging pipelines in Go using the samber/slog packages: multi-handler composition, sampling, attributes, middleware and sinks.
Which Go version?
The packages are for Go 1.21 and later, according to the listing.
How is noise reduced?
Sampling drops repetitive records early in the pipeline.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-slog.
How popular is it?
The skills.sh page lists the skill in the cc-skills-golang collection, which has 3.5K GitHub stars.
What are the best golang-samber-slog alternatives?
Popular alternatives to golang-samber-slog include python-observability, golang-observability and golang-samber-oops. See all golang-samber-slog alternatives
