I'm using Apache 2 + PHP 8, and have PHP warnings and errors written in Apache error log files. Here is an example of logs being written:
[Wed Aug 10 08:15:54.502158 2022] [php:warn] [pid 15437] [client 64.124.8.31:24644] PHP Warning: Constant ABSPATH already defined in /var/www/html/wp-config.php on line 43
It is difficult to troubleshoot as I don't know the PHP file which caused the warning / error.
I would like to have something like:
[Wed Aug 10 08:15:54.502158 2022] [php:warn] [pid 15437] [client 64.124.8.31:24644] [/path/to/myFileName.php] PHP Warning: Constant ABSPATH already defined in /var/www/html/wp-config.php on line 43
Would anybody know how to configure this?
Thanks for your help.