Documentation
¶
Overview ¶
Package slog exposes a Grip sender that delegates log output to any std-library slog.Logger. It enables code written for Grip (github.com/tychoish/grip) to emit structured or unstructured records through slog without losing level fidelity or contextual data.
Filtering behaviour ¶
The Sender honours both its own grip-level Priority filter (evaluated by send.ShouldLog) and the slog.Logger's Handler-level filter (Handler().Enabled). The Grip filter always runs first; therefore decreasing the sender's Priority will not cause log events to bypass the slog.Handler, and increasing the Priority cannot force the Handler to accept records it would otherwise discard. In other words, the most restrictive filter between Grip and slog ultimately determines whether a record is emitted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.