INFO | User registered for newsletter. [user="Thomas", email="thomas@tuhrig.de"]
Ruh-roh! You now have a potential privacy incident ready to occur, if an inadvertent log leak ever happens. I think, at least these days, one vital component of any logging API is the ability to flag particular bits of information as PII so that it can get handled differently upon output, storage, or ingestion by other tools. For example, if the users's actual E-mail address is not specifically useful for debugging, do you need to display it in the default visualization of the log?I think in 2020, with companies' privacy practices getting more and more scrutiny, any logging best practices doc should at least mention treatment of PII.