Purpose case: Audit Logs
Purpose case: Security Event Logs
2. Secrets in Logging
3. Sensitive Data in Logging
5. Stacktraces and Logging
Stacktraces require special attention. When stacktraces encompass business objects in their descriptions, they can leak information which we just listed not to log. Therefore, always be careful with what you put in the context of an exception. Make sure that either your business objects, or your logging & exception handling configuration ensures that confidential information is cleared out during a stacktrace.