DebugLevel

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

Version 

Introduced in API version 35.0.

Supported SOAP API Calls 

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

Supported REST API Methods 

DELETE, GET, HEAD, PATCH, POST, Query

Fields 

ApexCode 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

ApexProfiling 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Callout 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

DataAccess 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Introduced: API version 63.0

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Database 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

DeveloperName 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: The developer’s internal name for the debug level. Also displays in the Developer Console and in Setup.

Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.

Language 

  • Type: picklist

  • Required: No

  • 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.

  • Possible values:

    • en_US — English

    • de — German

    • es — Spanish

    • fr — French

    • it — Italian

    • ja — Japanese

    • sv — Swedish

    • ko — Korean

    • zh_TW — Chinese (Traditional)

    • zh_CN — Chinese (Simplified)

    • pt_BR — Portuguese (Brazil)

    • nl_NL — Dutch

    • da — Danish

    • th — Thai

    • fi — Finnish

    • ru — Russian

    • es_MX — Spanish (Mexico)

    • no — Norwegian

MasterLabel 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: Label for the Debug Level. In the UI, this field is MasterLabel.

Nba 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update

  • Introduced: API version 43.0

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

System 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Validation 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Visualforce 

  • Type: picklist

  • Required: No

  • 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.

This field is required.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Wave 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update

  • Introduced: API version 39.0

  • Description: The log category level for CRM Analytics. Includes information such as template processing errors and rules execution summaries. The following are valid values.

  • NONE

  • ERROR

  • WARN

  • INFO

  • DEBUG

  • FINE

  • FINER

  • FINEST

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Workflow 

  • Type: picklist

  • Required: No

  • 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.

  • Possible values:

    • NONE — None

    • INTERNAL — Internal

    • FINEST — Finest

    • FINER — Finer

    • FINE — Fine

    • DEBUG — Debug

    • INFO — Info

    • WARN — Warn

    • ERROR — Error

Usage 

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

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!