Lightlines
By samber

golang-samber-slog

samber34.8k installs

Go logging pipelines that scrub sensitive data.

What it does

Guides the design of Go logging pipelines that sample records, clean sensitive attributes, and route logs to suitable handlers.

When to use it

Use when adopting slog, working with slog, or editing a codebase that imports a github.com/samber/slog-* package.

How to use it

It changes how the agent implements Go logging by prescribing pipeline ordering, handler composition, and shared attribute processing.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: GitHub

Latest review

What you need · 1

Requires the Go toolchain; the documented logging packages target Go 1.21+.


Access · 1

This skill

GitHub

Write

Posts bug reports to GitHub (irreversible)