Sensitive Data Masking (PII - Secret Filtering)
status
To-do
type
Task
In enterprise environments, inadvertently logging passwords, API keys, or personally identifiable information (PII) is a massive liability.
Feature: Data sanitization hooks.
Mechanics: Add a #:mask-fields option or a sanitization procedure hook to the logger constructor. If a key in the log context matches "password" or "secret", its value is automatically replaced with "[MASKED]" before the layout is rendered or serialized to JSON.