Fidelity Investments Interview Question

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