https://mamchenkov.net/wordpress/2010/03/02/monitoring-php-errors-warnings-and-notices/
Monitoring PHP errors, warnings, and notices