> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/salesforce-lightning/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.6/integrate-the-salesforce-lightning-app/step-4-configure-dcm-logs.md).

# Step 4: Configure DCM logs

Learn how to configure DCM logs.

A `Custom` object called DCM Application Logs captures all application logs for the Salesforce Lightning app.

{% hint style="info" %}
The default Logging Level is always set to ERROR. Set the default Logging Level to WARN in production. Valid values for the Logging Level include DEBUG, INFO, WARN, and ERROR.
{% endhint %}

The Logging framework comes with options to configure the Logging Level and Retention Days at the Org Level, Profile Level, and User Level.

1. Click **Setup** ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2FrV6gMA5MM9QLOPkMoBPs%2FSetup.png?alt=media) and select **Setup** from the dropdown list.\
   ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2FYZHUCxlxqL4BTopXOoIC%2FPage%20layout%201.png?alt=media)
2. Type `Custom Settings` in the **Quick Find** field and click **Custom Settings**.\
   ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2F3XVaBZsCbQjImRNqxDan%2FQuick%20Find%20-%20Custom%20Settings.png?alt=media)
3. Click **Manage** next to the **Digital River - Logger Settings** link under **Label**.\
   ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2FdDwvL79aXkX5bHKRpIie%2FCustom%20Settings.png?alt=media)
4. Click **New** to configure the logger settings.\
   ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2FUfy3TiAynjrT0sxaYNQs%2FDefault%20Organization%20Level%20Values.png?alt=media)
5. Select either **Profile** or **User** from the **Location** dropdown, click the **Location Lookup** ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2F4vnbXultbfmt9yykl3w8%2FLocation%20Search.png?alt=media) icon, and then click the appropriate profile or user from the **Lookup** list.![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2F31hILzsKdBsOQOB7usrJ%2FLookup.png?alt=media)
6. Enter values for the **Logging level** and **Retention Days**. Valid values for the Logging Level include **DEBUG**, **INFO**, **WARN**, **ERROR**, and **NONE**.\
   ![](https://3252901943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnrT0Aw9SJXFncA6OzO2%2Fuploads%2FFcvgeZTpOLTzTrYejcTa%2FDigital%20River%20-%20Logger%20Settings%20Edit.png?alt=media)
7. Optional. Enter the number of days to retain the log record in the **Retention Days** field.
8. Click **Save**.
