Newer Version Available

This content describes an older version of this product. View Latest

DebugLevel

Represents a set of log category levels to assign to a TraceFlag object. Multiple trace flags can use a debug level.

Supported SOAP API Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Supported REST API HTTP Methods

Query, GET, POST, PATCH, DELETE

Fields

Field Name Details
ApexCode
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for Apex code. Includes information about Apex code. Can also include log messages generated by data manipulation language (DML) statements, inline SOQL or SOSL queries, the start and completion of triggers, the start and completion of test methods, and so on. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

ApexProfiling
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for profiling information. Includes cumulative profiling information, such as the limits for your namespace, the number of emails sent, and so on. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

Callout
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for callouts. Includes the request-response XML that the server is sending and receiving from an external Web service. The request-response XML is useful when debugging issues related to SOAP API calls. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

Database
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category for database activity. Includes information about database activity, including every DML statement or inline SOQL or SOSL query. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The developer’s internal name for the debug level. Also displays in the Developer Console and in Setup.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel. Valid values are:
  • Chinese (Simplified): zh_CN
  • Chinese (Traditional): zh_TW
  • Danish: da
  • Dutch: nl_NL
  • English: en_US
  • Finnish: fi
  • French: fr
  • German: de
  • Italian: it
  • Japanese: ja
  • Korean: ko
  • Norwegian: no
  • Portuguese (Brazil): pt_BR
  • Russian: ru
  • Spanish: es
  • Spanish (Mexico): es_MX Spanish (Mexico) defaults to Spanish for customer-defined translations.
  • Swedish: sv
  • Thai: th The Salesforce user interface is fully translated to Thai, but Help is in English.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Reserved for future use. However, this field is required and must contain a value. We suggest that you use the same value used for DeveloperName.
System
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for calls to all system methods, such as the System.debug method. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

Validation
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for validation rules. Includes information about validation rules, such as the name of the rule, or whether the rule evaluated true or false. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

Visualforce
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for Visualforce. Includes information about Visualforce events, including serialization and deserialization of the view state or the evaluation of a formula field in a Visualforce page. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

This field is required.

Workflow
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The log category level for workflow rules. Includes information for workflow rules, such as the rule name and the actions taken. This field is required. The following are valid values.
  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • FINE
  • FINER
  • FINEST

Usage

If you delete a debug level, all the trace flags that use it are deleted.