golang-samber-slog
CommunityStructured logging pipelines for Go apps.
Authorsamber
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go projects often struggle with high-volume, structured logging that is easy to route, filter, and back-end efficiently. This skill shows how to compose pipelines using samber/slog libraries to achieve deterministic performance and clear log structures.
Core Features & Use Cases
- 20+ composable slog.Handler packages for Go 1.21+ that enable pipeline construction, routing, and sinks.
- Deterministic pipeline ordering (sampling outermost, then formatting, then routing) to minimize wasted CPU and ensure sinks see clean data.
- HTTP middlewares and backends integration with versioned modules (e.g. slog-datadog, slog-loki, slog-sentry) for production-grade deployments.
- Practical guidance for using Router vs Fanout, first-match vs multi-predicate routing, and graceful shutdown for batched sinks.
Quick Start
Configure a pipeline that samples noisy logs, formats attributes to remove sensitive data, and routes errors to Sentry while streaming normal logs to Loki.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: golang-samber-slog Download link: https://github.com/samber/cc-skills-golang/archive/main.zip#golang-samber-slog Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.