# Step 4: 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** ![](/files/Z3UC9pN9SZOkmA6V52IF) and select **Setup** from the dropdown list.\
   ![](/files/JpxSWtNtChWKYh8VGlh6)
2. Type `Custom Settings` in the **Quick Find** field and click **Custom Settings**.\
   ![](/files/kHk71H3HTHBNlIZpnKSX)
3. Click **Manage** next to the **Digital River - Logger Settings** link under **Label**.\
   ![](/files/xDP3NafsDABqEmOy7zZL)
4. Click **New** to configure the logger settings.\
   ![](/files/e0FwubiXLMOKx7ijkeXI)
5. Select either **Profile** or **User** from the **Location** dropdown, click the **Location Lookup** ![](/files/BXJjaQ4vQh6PQAjzqcAX) icon, and then click the appropriate profile or user from the **Lookup** list.\
   \
   ![](/files/gySs6653EYEjcsrwE6FX)
6. Enter values for the **Logging level** and **Retention Days**. Valid values for the Logging Level include **DEBUG**, **INFO**, **WARN**, **ERROR**, and **NONE**.\
   ![](/files/STT5V74u9eCH1D2ThOgt)
7. Optional. Enter the number of days to retain the log record in the **Retention Days** field.
8. Click **Save**.


---

# 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/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/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.
