What problem does it solve?
Logging is often inconsistent, noisy, or unsafe, exposing personally identifiable information (PII) or using incorrect log levels that make diagnosis and monitoring difficult. This Skill provides clear, actionable rules so engineers produce meaningful, non-sensitive log statements that support debugging and observability without leaking private data.
Core Features & Use Cases
- Consistent logging conventions using SLF4J and parameterized placeholders to avoid string concatenation.
- Clear mapping of intent to level: DEBUG for entry/exit, INFO for business events, WARN for recoverable issues, ERROR at exception boundaries.
- Safety rules preventing PII and full request/response bodies from being logged, and guidance for where to log stack traces.
- Use cases: adding new service logs, performing log-focused code reviews, and auditing existing log coverage.
Quick Start
When adding a service method, insert a DEBUG entry log with parameterized placeholders and an INFO business event for resource creation, and never include PII or full request/response bodies.