Salesforce Commerce Cloud — How to Save Sensitive Log? (Do You Know Article Series #3)

Never be under impression that logs are secure since it asks you to provide BM credentials.

Savan Koradia
Salesforce Commerce Cloud Tales

--

When the developer has worked on any important task, and it is now in production for the general public to use, it is important to have monitoring to troubleshoot any issue that occurs.

In Salesforce Commerce Cloud, the developer can easily achieve by logs. Logs are plain text format and generally very easier to read. It is true that by using logs we can find many important insights, but we forget that it can be damageable as well.

Image by the author

You can generally relate to 3rd party integrations related to payment, orders, customer information, etc. When you want to make your system GDPR compliant it is also import aspect to take care of every developer.

Imagine, your card details are available to the company you are using services from and someone misuses that details. Who would like that?!

To play around with sensitive data as a developer you should use important functions supported by the platform: filterLogMessage, getRequestLogMessage, getResponseLogMessage.

--

--

Savan Koradia
Salesforce Commerce Cloud Tales

SFCC Solution Architect, Mentor. I write about technical learning, improvements, work culture, mentoring.