Gravity PDF API โ get_log_class()
Jump To Section
Description
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)
- URL
- Peak memory usage
- File and line number called from
- User IP
- Timestamp
Version
This method was introduced in Gravity PDF 4.0.
Return
\Monolog\Logger | object : The logging class
Usage
The following snippet shows you how to use this method and write to our log file:
Source Code
This method is located in api.php
.