Version
This header is available in all API versions.
Supported Calls
Fields
categories
- Type: LogInfo[]
- Description: A list of log categories with their associated log levels.
debugLevel
- Type: LogType (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
Sample CodeāJava
Add the DebuggingHeader to the metadata connection before you perform the deploy() call as follows.
LogInfo[] logs = new LogInfo[1]; logs[0] = new LogInfo(); logs[0].setCategory(LogCategory.Apex_code); logs[0].setLevel(LogCategoryLevel.Fine); metadataConnection.setDebuggingHeader(logs);
The result of the deploy() call is obtained by calling checkDeployStatus(). After the deployment finishes, and if tests were run, the response of checkDeployStatus() contains the debug log output in the debugLog field of a DebuggingInfo output header.