---
schema_version: "1"
id: 6b67865198f72a2c067a2d2acccf8090b407ccad9916d8fe12560ce7b681d445
title: Understand Logging
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wdc-cc-understand-logging.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-understand-logging.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ef1f358bd8dcde01d7774909982d6188c341707236f9b5e27779aadd268f626d
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# Understand Logging

Work.com captures errors and exceptions that originate from Workplace Command Center and Wellness Check and adds them as log messages to the wkcc\_\_CmdCtrLog\_\_c custom object.

While log messages originate from all parts of Work.com, most of them come from these operations or background jobs:

- Sending a wellness check survey to one or more employees in one or more locations.
- Processing survey responses.
- Generating wellness counts based on the current wellness status of people associated with a particular location.

Work.com captures errors and exceptions asynchronously. It uses a custom platform event (wkcc\_\_CmdCtrLogEvent\_\_e) and an Apex trigger (LogEventTrigger) to capture the error even if the operation that caused it is rolled back. The error from a rolled back operation is useful because you can use it to troubleshoot potential problems and problems that actually happened.

Logging is enabled by default for Work.com. To disable logging, or configure other properties like how long to keep log messages, update the Command Center Log Settings custom metadata type in Setup. View log messages by creating a list view on the Command Center Logs object, which is visible by default in the App Launcher. As with other Salesforce objects, you can also create reports and Flows on Command Center Logs.

**See Also**

- [_Salesforce Help_: Configure Logging](https://help.salesforce.com/articleView?id=wcc_setup_logging_config.html)
- [_Salesforce Help_: View Log Messages](https://help.salesforce.com/articleView?id=wcc_setup_logging_view.html)
- [wkcc\_\_CmdCtrLog\_\_c](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-cmdctrlog__c.md)
- [wkcc\_\_CmdCtrLogEvent\_\_e](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-cmdctrlogevent__e.md)
- [wkcc\_\_CmdCtrLogSettings\_\_mdt](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-cmdctrlogsettings__mdt.md)
