aubes/shadow-logger-bundle
Symfony bundle adding a Monolog processor to transform/anonymize sensitive log data for GDPR compliance. Supports IP anonymization, hashing, encryption, and field removal via configurable mappings for context/extra, with strict and debug modes.
app handler) to minimize overhead in high-throughput systems.Adopt When:
Look Elsewhere If:
.env)."This package lets us log user activity for debugging and analytics without storing or exposing sensitive data—critical for GDPR compliance and reducing legal risk. For example, we can trace a user’s session across requests using a hashed ID instead of their email, while still being able to correlate events. It’s a lightweight, maintainable solution that avoids custom code and integrates seamlessly with our existing logging infrastructure. The cost? Minimal development effort and a one-time setup for encryption keys. The payoff? Peace of mind that our logs won’t accidentally leak PII, and the flexibility to adapt to future privacy regulations."
Key Metrics to Track:
*"The Shadow Logger Bundle is a Symfony-compatible Monolog processor that anonymizes sensitive log data using configurable transformers (hashing, encryption, IP masking, etc.). Here’s why it’s a win:
app handler) to avoid global slowdowns.['string', 'hash']) and custom implementations for edge cases.strict mode).Trade-offs:
.env or a secrets manager).Next Steps:
audit) and validate log quality.SHADOW_LOGGER_ENCODER_SALT and SHADOW_LOGGER_ENCRYPTOR_KEY in our secrets vault.shadow-debug mode (dev-only).Alternatives Considered:
For Legal/Compliance: *"This tool addresses two core GDPR requirements:
Limitations to Note:
Recommendation: Approve for production use with the condition that we audit log samples post-deployment to confirm anonymization effectiveness."*
How can I help you explore Laravel packages today?