# 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** ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-236ac3ea9e3a38705205d7d99c4ed3c7977cffab%2FSetup.png?alt=media) and select **Setup** from the dropdown list.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f9c473633266993291a070ca97f9ca5dd0ee5bb7%2FPage%20layout%201.png?alt=media)
2. Type `Custom Settings` in the **Quick Find** field and click **Custom Settings**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-8c52516ff4ebcd114ec8034d1871cf0d2efe0caf%2FQuick%20Find%20-%20Custom%20Settings.png?alt=media)
3. Click **Manage** next to the **Digital River - Logger Settings** link under **Label**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-54cef86274532f32afa332bb07ca7aef46f523ac%2FCustom%20Settings.png?alt=media)
4. Click **New** to configure the logger settings.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-fdaeda85d9e70f82ffdeacf69f8d7069445a11cf%2FDefault%20Organization%20Level%20Values.png?alt=media)
5. Select either **Profile** or **User** from the **Location** dropdown, click the **Location Lookup** ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-463d65c435b39c03191a4ac1d00f7d63f1520dc8%2FLocation%20Search.png?alt=media) icon, and then click the appropriate profile or user from the **Lookup** list.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-184e2ac9035e78e48338293d055562de3e4a1f5a%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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-8d3754599a6a756b2c6a4eee740c47e01adb68db%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**.
