logging
Installation
SKILL.md
Logging
Workflow
- Identify the event, audience, and debugging question the log should answer.
- Use structured fields when the codebase supports them.
- Include correlation IDs, user or tenant identifiers only when safe, and relevant operation context.
- Choose the correct level: debug, info, warn, error.
- Redact secrets and sensitive data.
Rules
- Do not log passwords, tokens, private keys, full payment data, or sensitive prompts.
- Avoid noisy logs in hot paths.
- Include enough context to diagnose failures without stack traces everywhere.