Apex Code Settings: Log Category and Log Level
The default logging levels for Apex tests executed during deployments and for the Execute Anonymous view are defined on the Apex Code Settings page in the project properties dialog. To open the project properties dialog, right-click your top-level project folder and select Properties.
To define logging levels for Apex test execution,
select . To create a test run configuration, then select New launch
configuration (
).
You can customize these log categories.
You can assign these log levels to your log categories.
| Log Level | Description |
|---|---|
| Error, Warn, Info | Includes error, warning, and information messages. |
| Debug | Includes lower-level messages, and messages generated by calls to the System.debug method. |
| Fine, Finer | Includes log messages generated by calls to the System.debug method, every DML statement or inline SOQL or SOSL query, and the entrance and exit of every user-defined method. In addition, the end of the debug log contains overall profiling information for the portions of the request that used the most resources. These resources include SOQL and SOSL statements, DML operations, and Apex method invocations. |
| Finest | Includes all messages generated by the
Fine or Finer log
levels, as well additional information on Apex
scripts, including the following.
|