LogSetting__c
Sobject
global class LogSetting__c extends SObjectExtends: SObject
Controls logging behaviour: log level threshold, class filtering, performance logging thresholds, and context data size limits. Hierarchy: Org > Profile > User.
Fields
| Field | Description |
|---|---|
| global String ClassFilter__c | Comma-separated class name patterns. |
| global String EnableFlowActionLogging__c | Controls how often flow trigger actions write audit log entries. |
| global Boolean EnableMaskerPerformanceLogging__c | When enabled, logs performance metrics for data masking on a trigger batch that exceeds MaskerPerformanceThresholdMs. |
| global Boolean EnablePerformanceLogging__c | When enabled, logs performance metrics for webservice and API callout operations that exceed PerformanceThresholdMs. |
| global Boolean EnableQueryPerformanceLogging__c | When enabled, logs performance metrics for SOQL queries that exceed QueryPerformanceThresholdMs. |
| global Boolean EnableTriggerPerformanceLogging__c | When enabled, logs performance metrics for trigger action handlers that exceed TriggerPerformanceThresholdMs. |
| global Boolean EnableValidationPerformanceLogging__c | When enabled, logs performance metrics for validation rule processing that exceeds ValidationPerformanceThresholdMs. |
| global Boolean IsEnabled__c | Master kill switch for logging. |
| global String LogLevelThreshold__c | Minimum log level to capture. |
| global Decimal MaskerPerformanceThresholdMs__c | Minimum masking duration in milliseconds before a trigger batch is logged as a performance entry. |
| global Decimal MaxContextDataSize__c | Maximum character length for serialized context data attached to log entries. |
| global Decimal PerformanceThresholdMs__c | Minimum duration in milliseconds before a webservice/API operation is logged as a performance entry. |
| global Decimal QueryPerformanceThresholdMs__c | Minimum duration in milliseconds before a SOQL query is logged as a performance entry. |
| global String SuppressClassMethod__c | Comma-separated class name patterns to suppress (denylist). |
| global Decimal TriggerPerformanceThresholdMs__c | Minimum duration in milliseconds before a trigger action handler is logged as a performance entry. |
| global Decimal ValidationPerformanceThresholdMs__c | Minimum duration in milliseconds before a validation rule processing cycle is logged as a performance entry. |
Field Details
ClassFilter__c
global String ClassFilter__cComma-separated class name patterns. Only log entries from matching classes pass. Supports trailing wildcard (*). Blank means all classes pass.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Text(255) |
| Required | false |
| Unique | false |
| External ID | false |
EnableFlowActionLogging__c
global String EnableFlowActionLogging__cControls how often flow trigger actions write audit log entries. Valid values: Off, ErrorsOnly, AlwaysOn. Off disables audit logging entirely. ErrorsOnly (default) records one log entry per failed flow run, with the failed record identified. AlwaysOn records one summary entry per successful batch plus one entry per failed record — use this only in orgs that need compliance-grade evidence of every flow trigger run, since heavy bulk saves multiply the log volume. Defaults to ErrorsOnly.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Text(40) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | "ErrorsOnly" |
EnableMaskerPerformanceLogging__c
global Boolean EnableMaskerPerformanceLogging__cWhen enabled, logs performance metrics for data masking on a trigger batch that exceeds MaskerPerformanceThresholdMs. One aggregate log entry per batch, not per record. Default off — turn on during investigation of slow commits to attribute the time to masking.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | false |
EnablePerformanceLogging__c
global Boolean EnablePerformanceLogging__cWhen enabled, logs performance metrics for webservice and API callout operations that exceed PerformanceThresholdMs.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | true |
EnableQueryPerformanceLogging__c
global Boolean EnableQueryPerformanceLogging__cWhen enabled, logs performance metrics for SOQL queries that exceed QueryPerformanceThresholdMs.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | true |
EnableTriggerPerformanceLogging__c
global Boolean EnableTriggerPerformanceLogging__cWhen enabled, logs performance metrics for trigger action handlers that exceed TriggerPerformanceThresholdMs.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | true |
EnableValidationPerformanceLogging__c
global Boolean EnableValidationPerformanceLogging__cWhen enabled, logs performance metrics for validation rule processing that exceeds ValidationPerformanceThresholdMs.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | true |
IsEnabled__c
global Boolean IsEnabled__cMaster kill switch for logging. When false, all log entries except ERROR are dropped.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Checkbox |
| Default Value | true |
LogLevelThreshold__c
global String LogLevelThreshold__cMinimum log level to capture. Valid values: DEBUG, INFO, WARN, ERROR. Entries below this threshold are silently dropped. DEBUG captures all; ERROR captures only errors.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Text(10) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | "DEBUG" |
MaskerPerformanceThresholdMs__c
global Decimal MaskerPerformanceThresholdMs__cMinimum masking duration in milliseconds before a trigger batch is logged as a performance entry. Applies when Enable Masker Performance Logging is on. Default 100ms.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 100 |
MaxContextDataSize__c
global Decimal MaxContextDataSize__cMaximum character length for serialized context data attached to log entries. Context data exceeding this limit is truncated.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 32768 |
PerformanceThresholdMs__c
global Decimal PerformanceThresholdMs__cMinimum duration in milliseconds before a webservice/API operation is logged as a performance entry.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 10000 |
QueryPerformanceThresholdMs__c
global Decimal QueryPerformanceThresholdMs__cMinimum duration in milliseconds before a SOQL query is logged as a performance entry.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 1000 |
SuppressClassMethod__c
global String SuppressClassMethod__cComma-separated class name patterns to suppress (denylist). Log entries from matching classes are dropped, even when ClassFilter is blank or includes them. Supports trailing wildcard (*). Blank means no class is suppressed. Applied AFTER the ClassFilter allowlist.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Text(255) |
| Required | false |
| Unique | false |
| External ID | false |
TriggerPerformanceThresholdMs__c
global Decimal TriggerPerformanceThresholdMs__cMinimum duration in milliseconds before a trigger action handler is logged as a performance entry.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 500 |
ValidationPerformanceThresholdMs__c
global Decimal ValidationPerformanceThresholdMs__cMinimum duration in milliseconds before a validation rule processing cycle is logged as a performance entry.
Field Attributes:
| Attribute | Value |
|---|---|
| Data Type | Number(18,0) |
| Required | false |
| Unique | false |
| External ID | false |
| Default Value | 100 |