# 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/-Me_o8-LldgREKGXyS92" alt="" data-size="original">&#x20;
2. Click **Manage**. \ <img src="/files/-Me_oJDwL7dtXq0Alb1r" alt="" data-size="original">&#x20;
3. Click **New** to enter the **Default Organization Level Value**.\
   &#x20;<img src="/files/-Me_ocTNMxbEGulq1Zig" 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/-Me_qnri_3iiq7aqQWf0" 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/-Me_quDN1tz8OYcn08_r" 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/-Me_raqGaNH01acBx-tq" alt="" data-size="original"> &#x20;
9. Click **Save**.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-lightning/operation-and-maintenance/step-4-configure-dcm-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
