---
schema_version: "1"
id: 0de5bf05a334b30fa42d7e757e8209ae50e2c7c3ad00fed44b40470797469f5f
title: wkcc__CmdCtrLogSettings__mdt
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wdc-cc-sforce-api-objects-cmdctrlogsettings__mdt.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-cmdctrlogsettings__mdt.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 45697dd0239441810bb0dfa20cf37bb7b493cda71d6fd0c751ecf99b3af688da
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# wkcc\_\_CmdCtrLogSettings\_\_mdt

Custom metadata type that contains a record named Default for configuring logging in Workplace Command Center and Wellness Check. You can enable or disable logging and configure whether, and for how long, Salesforce keeps old log messages. The wkcc\_\_CmdCtrLog\_\_c custom object stores the log messages. This custom metadata type is available in orgs that have Workplace Command Center installed.

## Supported Calls

`describeLayout()`, `describeSObjects()`, `query()`, `retrieve()`

## Fields

| Field                              | Type    | Properties                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------------------------------- | ------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| wkcc\_\_DoesDelPersistentData\_\_c | boolean | Defaulted on create, Filter, Group, Sort | If `true`, Work.com deletes old log messages from the wkcc\_\_CmdCtrLog\_\_c custom object until it reaches the value of the wkcc\_\_MaxPersistentDataRows\_\_c field. For example, let’s say wkcc\_\_MaxPersistentDataRows\_\_cequals 2000 and the number of log messages in the custom object wkcc\_\_CmdCtrLog\_\_c exceeds 2000. In this case, Work.com deletes old log messages until the number is back down to 2000. Default value is `false`. |
| wkcc\_\_EnableLogging\_\_c         | boolean | Defaulted on create, Filter, Group, Sort | If `true`, logging is enabled for Workplace Command Center and Wellness Employee Check. Default value is `true`.                                                                                                                                                                                                                                                                                                                                      |
| wkcc\_\_MaxPersistentDataRows\_\_c | double  | Filter, Nillable, Sort                   | When the wkcc\_\_DoesDelPersistentData\_\_c field is set to `true`, this field determines the maximum number of log messages to keep in the wkcc\_\_CmdCtrLog\_\_c custom object.                                                                                                                                                                                                                                                                     |

**See Also**

- [Understand Logging](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-understand-logging.md)
