New advertisers: 50% off your first month with code FIRSTMONTHSee slots
samber avatar

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
View on GitHub

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 -y

Installs 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:

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

Similar to Golang Samber Slog

More Go