https://sangkrit.net/keeping-log-of-wordpress-php-and-database-errors/
How To Keep Log Of WordPress PHP And Database Errors ?