What problem does it solve?
This Skill helps you design production-ready structured logging pipelines in Go with samber/slog, so logs are routed, sampled, formatted, and shipped correctly without wasted CPU or missed shutdown flushes.
Core Features & Use Cases
- Pipeline composition: Combine sampling, formatting, routing, and sink handlers with slog-multi.
- Noise control and PII safety: Sample early, scrub sensitive fields, and keep downstream handlers clean.
- HTTP middleware integration: Configure slog-gin, slog-echo, slog-fiber, slog-chi, or slog-http for request logging and request-scoped attributes.
- Backend delivery: Send logs to Sentry, Loki, Datadog, Kafka, Slack, Telegram, Webhook, Parquet, or bridge to Zap, Zerolog, and Logrus.
- Use case: A Go API can log 4xx and 5xx at different severities, route errors to alerts, keep info logs in observability storage, and flush buffered sinks during graceful shutdown.
Quick Start
Use this skill to design a Go logging setup that samples noisy records first, scrubs PII, routes errors to the right backend, and closes buffered handlers safely.