---
schema_version: "1"
id: 4920b99206a3ad56361c768c002b62f91215a704919d7ca9b3d80aba1993ab0e
title: DebugLevel
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_debuglevel.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_debuglevel.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 76b49aeb7c046d8687a159fcbd395180d3582886d05ddd8756d4524d6a663f69
description: Represents a set of log category levels to assign to a TraceFlag object. Multiple trace flags can use a debug level.
---
# 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.





 |
| dataAccess | 

Type

ApexLogLevel (enumeration of type string)

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The log category level for rules and policy information for objects accessed from the UI, which can be used to determine why an object isn’t accessible.The following are valid values.

- NONE
- ERROR
- WARN
- INFO
- DEBUG
- FINE
- FINER
- FINEST

\>



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

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



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



 |
| nba | 

Type

ApexLogLevel (enumeration of type string)

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The log category level for Einstein Next Best Action activity, including strategy execution details from Strategy Builder. The following are valid values.

- NONE
- ERROR
- WARN
- INFO
- DEBUG
- FINE
- FINER
- FINEST

\>



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





 |
| Wave | 

Type

ApexLogLevel (enumeration of type string)

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

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

\>



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