> 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-api-1.0.1/integrate-the-salesforce-lightning-app/step-4-configure-dcm-logs.md).

# Step 4: Configure DCM logs

All Salesforce Lightning app application logs are captured in a Custom object called DCM Application Logs.

{% 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. &#x20;
{% 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. In the **Setup** menu, open **Custom Settings**, then click the **Digital River - Logger Settings** object. \ <img src="/files/DIhIQ6AjpBrdixu9n0v2" alt="" data-size="original">&#x20;
2. Click **Manage**. \ <img src="/files/MYDHB8RGWReOgIoKqmuz" alt="" data-size="original">&#x20;
3. Click **New** to enter the **Default Organization Level Value**.\
   &#x20;<img src="/files/gc9yXOEPsjDLrTJ8w1Rn" alt="" data-size="original">&#x20;
4. Enter values for the **Logging level** and **Retention Days**. Valid values for the Logging Level include **DEBUG**, **INFO**, **WARN**, and **ERROR**.  \ <img src="/files/qHVuNtUxneviCDJ2QOOW" alt="" data-size="original">&#x20;
5. Click **Save**.
6. Click **New** in the **Default Organization Level Value** section to configure the logging level at the **Profile** or **User** level. \ <img src="/files/fxaqheyKI7pLOJq9NWuN" alt="" data-size="original">&#x20;
7. Select **Profile** or **User** in the **Location** field.
8. Enter values for the **Logging level** and **Retention days**. Valid values for the Logging Level include **DEBUG**, **INFO**, **WARN**, and **ERROR**.  \ <img src="/files/1OwWjFKk8QgDvXbFFMn0" alt="" data-size="original"> &#x20;
9. Click **Save**.
