Log levels
Now that we have a simple way of replicating the issue that can speed up our debugging, the next step for us is to ensure we have the correct level of logging. Salesforce debug logs have a limit of 20MB, which is a large amount of data for a purely text-based output and can end up with you viewing what amounts to a lot of noise about the transaction. Setting up our log levels correctly is going to help us immensely in weeding out the issue without too much additional data to scroll and read through.
We can set the granularity of our debug logs to a series of different levels across a number of categories. The categories and a brief description of what information they contain is provided in the following table:
For each category, we can also define a log level from one of the following options:
- NONE
- ERROR
- WARN
- INFO
- DEBUG
- FINE
- FINER
- FINEST
This can give us over 100...