pointonsoftware / pscore

C++ library for building your business software
GNU Affero General Public License v3.0
1 stars 2 forks source link

Implement critical sections logging and PII masking #235

Open gbenziv opened 3 years ago

gbenziv commented 3 years ago

Currently, our logger only supports until log level ERROR.

This feature request is for adding LOG_CRITICAL to places where something should not happen in production (e.g. data corruption, etc..)

Also add a capability to hide personal identifications from our logs. We should be able to turn the PIIs on/off.

e.g.

LOG_INFO("Username is: %s", LOG_PII_MASK(username.c_str()));

if MASKING is ON: Username is: ???

if MASKING is OFF: Username is: bgar123