Apache only logs PHP errors if LogLevel is set to debug

Posted by Sudowned on Server Fault See other posts from Server Fault or by Sudowned
Published on 2012-09-18T05:49:46Z Indexed on 2012/09/18 9:39 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I'm developing a CodeIgniter application and for reasons that I do not fully understand errors have stopped being logged in the file specified in the Apache site conf.

The page I'm testing is definitely generating a 500 error, but that is not reflected in the logs unless I set LogLevel debug. Setting LogLevel to error or warn results in no errors being logged.

I don't think this is a CI issue because I've been developing this site for close to a week now and errors have been logged as expected until I picked the project up again this morning.

Though for what it's worth, I've got:

error_reporting(E_ALL);

set in my index.php.

© Server Fault or respective owner

Related posts about apache2

Related posts about php