Configure Logs in the Checkout Management App
The Checkout Management App (CMA) creates debug logs to help you troubleshoot issues. By default, all logs are saved, but you can configure the CMA to delete logs that you no longer need. Delete logs regularly to stay within the data storage limits for your Salesforce edition.
| User Permissions Needed | |
|---|---|
| To manage, create, edit, and delete custom settings: | Customize Application |
| To save changes to Apex classes and triggers: | Author Apex |
-
Log in to the org where the CMA is installed.
-
Configure how long to save CMA logs.
-
From Setup, enter
Custom Settingsin the Quick Find box, and then click Custom Settings. -
For CMALogSettings, click Manage.
-
Click New.
-
Enter a name. For example,
CMA Log Settings. -
For CMALogLifeSpan, enter how many days to save logs. For example, enter
30to save all logs created in the past 30 days.
To change how long CMA logs are saved, edit the value configured in this step. Don’t add more values to CMALogSettings.
-
-
Schedule an Apex job to delete old CMA logs.
-
From Setup, enter
Apex Classesin the Quick Find box, and then click Apex Classes. -
Click Schedule Apex.
-
Configure the job as follows.
Field Value Job Name CMA Log Cleanup Apex Class ScheduledDeleteCMALogs
Namespace prefix:sfcmaFrequency Specify a weekly or monthly interval—we recommend running the job at least one time per week Start Date Today’s date End Date A future date—we recommend specifying a date that’s at least several years in the future Preferred Start Time Any value—we recommend choosing a time when your org is not under a heavy load -
Click Save.
-