lacee1986
4/27/2020 - 10:01 AM

PHP Error logging

[The optimal setting for logging PHP errors] #PHP

display_errors 0 
Defines whether errors are included in output.

display_startup_errors 0
Whether to display PHP startup sequence errors.

error_log path
Path to the error log file. When running PHP in a Docker container, consider logging to stdout instead.

error_reporting	E_ALL
The minimum error reporting level.

log_errors 1
Toggles error logging.

log_errors_max_length 1024
Max length of logged errors. Set to zero for no maximum.

report_memleaks 0 
Reports memory leaks detected by Zend memory manager.

track_errors 1
Stores the last error message in $php_errormsg.