Return the debug log in the output header, DebuggingInfo, and specify the level of detail in the debug log.
Calls that include DebuggingHeader are limited to 1,000 in a 24-hour period. You can continue to make these calls even after reaching the total request limit for an org.
Description: Specifies the type and amount of information to be returned in the debug log.
debugLevel
Type: DebugLevel (enumeration of type string)
Description: Deprecated. This field is provided only for backward compatibility. If you provide values for both debugLevel and categories, the categories value is used. The debugLevel field specifies the type of information returned in the debug log. The values are listed from the least amount of information returned to the most information returned. Valid values include:
None
Debugonly
Db
Profiling
Callout
Detail
LogInfo
Specifies the type and amount of information to be returned in the debug log. The categories field takes a list of these objects. LogInfo is a mapping of category to level.
category
Type: LogCategory
Description: Specify the type of information returned in the debug log. Valid values are:
Db
Workflow
Validation
Callout
Apex_code
Apex_profiling
Visualforce
System
All
level
Type: LogCategoryLevel
Description: Specifies the level of detail returned in the debug log. Valid log levels are (listed from lowest to highest):