Fidelity Investments interview question

Describe the implementation of masking PII keywords while logging cloud-related API errors, preferably using log4net.