Re:My Logging Best Practices (2020)
by slaymaker1907 on Tuesday October 05, 2021 @06:32PM
(#28766572)
What I find works best is to avoid logging raw datatypes and instead limit it to objects/structs with custom toString. Then just make sure any PII fields are not included with toString either through some sort of annotation or by writing the implementation manually. This also encourages minimizing the code that actually interacts with PII such as replacing emails with user IDs ASAP.
[ Parent
| on HN ]
There are no comments on this comment yet.