Newer Version Available

This content describes an older version of this product. View Latest

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”
  1. Log in to the org where the CMA is installed.
  2. Configure how long to save CMA logs.
    1. From Setup, enter Custom Settings in the Quick Find box, and then click Custom Settings.
    2. For CMALogSettings, click Manage.
    3. Click New.
    4. Enter a name. For example, CMA Log Settings.
    5. For CMALogLifeSpan, enter how many days to save logs. For example, enter 30 to 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.

    Note

  3. Schedule an Apex job to delete old CMA logs.
    1. From Setup, enter Apex Classes in the Quick Find box, and then click Apex Classes.
    2. Click Schedule Apex.
    3. Configure the job as follows.
      Field Value
      Job Name CMA Log Cleanup
      Apex Class ScheduledDeleteCMALogs

      Namespace prefix: sfcma

      Note

      Frequency Specify a weekly or monthly interval—we recommend running the job at least once 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 heavy load
    4. Click Save.