I have recently taken over development of a legacy system and want to be able to turn on logging of PHP E_NOTICE
's on the deployment environment. The deployment environment ini has the following directives...
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
log_errors = On
I have compared the error_reporting
bitmask by using echo (E_ALL & ~E_DEPRECATED).' = '.error_reporting();
, and both match, so I know the error_reporting
level isn't changed within the system itself, and if I turn display_errors = On
notices are displayed, but not logged.
So how can I start logging PHP E_NOTICE
's?
Turns out the system has a custom Apache ErrorLog
directive defined, and I have been tail -f ...
the default Apache error_log.
Note to self: always check the web server setup first before posting silly questions on SO!