# Salesforce B2B Commerce App logs

All Salesforce B2B Commerce App application logs are logged to a custom object called DCM Application Logs “**digitalriverv2\_\_DCM\_Applications\_Log\_\_c**”. The default logging level of the app is always set to `ERROR`. That is, it only logs errors. You can modify the default logging level in [Step 14](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).

The app displays generic user-friendly error messages on the storefront user interface (UI), and the actual Error/Exception details will be logged to the DCM application log object. The **Logging Level** field on this object indicates the severity level of the log created by the application.

![](https://2309602074-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuPvN3iGOwRD0PjQh%2F-MRVjXhA0zOxAzTOHfkY%2F-MRVkNMZnDjQxWJV5Ae_%2FSampleErrorLog.jpg?alt=media\&token=56006f7f-965f-47e6-9a70-46952275d1b2)

As you can see in the image above, there was an error while making a callout to Digital River API (Logging Level field is set to ERROR), and the request/response information is logged for debugging purposes. There are fields in this Log object that capture run-time exception information, as shown in the following image:

<div align="left"><img src="https://2309602074-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuPvN3iGOwRD0PjQh%2F-MRVkSZCQzUaM-GFuYnK%2F-MRVkhxithpt7YV_h3Xy%2FRunTimeException.jpg?alt=media&#x26;token=e7628195-0d28-49f3-8696-dcafec61be95" alt=""></div>

The **Record Id** field has information about the Salesforce or Digital River record that generated this log. In the following example, the Salesforce Record ID, a1U4C000000MnppUAC, generated the log. Note that the **Logging Level** for this record is **DEBUG**. That is, the severity level of this log is DEBUG, and this is only for debugging purposes. You can click the link next to the **Link to Record** field to go to the Salesforce record for the ID captured in the **Record Id** field.

<div align="left"><img src="https://2309602074-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuPvN3iGOwRD0PjQh%2F-MRVkmjV__7RlXRpbVCG%2F-MRVl83clmOSNfXlZdfr%2FRecordId.jpg?alt=media&#x26;token=8e6ff19b-9bf5-4cb5-84b1-c467546813bc" alt=""></div>

Similarly, we have other fields for capturing User information (User Information section), Salesforce Governor Limits, and other support data. In case of any errors/exceptions encountered in the app, DCM Application logs would be the first place to go for debugging purposes.
