docs: add a name mnemonic to every module README and the root modules table
This commit is contained in:
@@ -4,6 +4,8 @@ Credential-redacting slog handler that keeps API keys, tokens and passwords out
|
||||
|
||||
`import "git.golem15.com/golem15/summercms/modules/sunscreen"`
|
||||
|
||||
**Name:** Protects you from exposure; it keeps secrets out of the logs.
|
||||
|
||||
## Overview
|
||||
|
||||
`sunscreen` wraps any `log/slog` handler and rewrites every record before it is written: values of sensitive attribute keys become `[REDACTED]`, and credential shapes inside messages and string values are scrubbed. It is the SummerCMS counterpart of a Monolog tap that a WinterCMS application wires into its log channels to scrub contexts and messages. Every application `main` that `summer build` generates calls `sunscreen.InstallDefault(os.Stderr)` as its first statement, so the default logger, the standard `log` package and every plugin that falls back to `slog.Default` log through it from the start.
|
||||
|
||||
Reference in New Issue
Block a user