Gravity PDF implements the PSR-3 logging library, Monolog, to handle all it's logging requirements. When in production the logger doesn't save any logs unless it's enabled through Gravity Forms in-built logging setting, or when using the Gravity Forms Logging Add-on. Once you've enabled logging, we'll save the appropriate logs to disk for later review – errors and higher or notices and higher, depending on the log setting you selected.
When using the logging class all logs will automatically include the following details:
- Function/method being called
- Class called from (if applicable)
- Peak memory usage
- File and line number called from
- User IP
This method was introduced in Gravity PDF 4.0.
\Monolog\Logger | object
- The logging class
The following snippet shows you how to use this method and write to our log file:
This method is located in