Enable enhanced audit logging

If your company needs to maintain an audit history of actions that are completed against your shoppers' personal data, we can enable enhanced audit logging.


Task info

The enhanced audit logging uses the AuditLogging helper to log any action that is completed against a shopper's personal data. The audit logging also includes the user that completed the action and the type of data affected.

For more information about the types of personal data that the site can collect by default, see Data collection.


Procedure

  1. Create a custom Docker image to set the trace specification. Then, we can distribute the custom Docker image.

    1. Create a Dockerfile for the target Docker image.

    2. In the Dockerfile, define the Run Engine command to set your trace specification. For example,

        run set-trace-specification com.ibm.commerce.businessaudit.util.AuditLoggingHelper=all

    3. Create a Docker image with the Dockerfile.

  2. Enable trace for the following logger: com.ibm.commerce.businessaudit.util.AuditLoggingHelper. The trace string resembles the following string.

       com.ibm.commerce.businessaudit.util.AuditLoggingHelper=all


Results

Audit log updates are added to the WC_profiledir/logs/server_name/trace.log file.


Example

Example log entries:


Related concepts
General Data Protection Regulation (GDPR) and WebSphere Commerce