Selective logging in Mulesoft Anypoint Runtime to safeguard sensitive information

I recently got into a situation where I was logging payloads in Anypoint Runtime and realized that the payload contained sensitive information (Email, SSN, etc.). However, this information is highly useful as we are developing applications for debugging purposes but it’s quite a hassle to enable/disable logs and re-deploy applications in lower environment when troubleshooting issues.

Like any other product or language, Mulesoft offers a solution for this problem. When printing the logs, you…