# Step 14: Configure the Salesforce B2B Commerce app logs

All the Salesforce B2B Commerce app application logs are logged to a custom object called **DCM Application Logs “digitalriverv2\_\_DCM\_Application\_Log\_\_c**”. The default logging level is always set to **DEBUG**. It is recommended to switch it to **ERROR** for production, that is, to only log errors.

To configure the default logging level for the app:

1. From the Setup menu, open Custom Metadata Types, then click to open the DCM Application Log Configuration type.\
   ![](/files/-MSnrBC6tcof7CFBHy_z)
2. Click **Manage DCM Application Log Configurations**. \
   ![](/files/-MRVVKfw2N2FaZWgpBlG)
3. Click the **Default App Log Config**. \
   ![](/files/-MRVVSnWssgB6r7jDuJO)
4. Configure the default logging level for the app logging in the **Logging Level** field.\
   ![](/files/-MRVVbjnrN3Ceg3p-7D7) \
   **Note:** There is another **Log Level** field that is deprecated and should no longer be used.
5. Add all the users, including the storefront user, to the DRB2B Permission Set so they can log to the DCM Application Log object. The DCM Application Log Cleanup job uses the **Delete Logs Older Than** field to clean up old logs.


---

# 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-b2b/2.1.1-2/integrating-the-digital-river-salesforce-b2b-commerce-app/step-14-configure-the-digital-river-app-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.
