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

# 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**.
