PHP error reporting: some errors to screen, all to log

CoorsBepMipse

New Member
I want to know how I can display \[code\]E_ERROR\[/code\] error messages to the screen but write \[code\]E_ALL\[/code\] error messages to the error log, we currently use the \[code\]error_reporting()\[/code\] in our app index page so we can change error reporting without the need to constantly restart the web server, but it seems that this (or perhaps the way it's meant to work) means that we only log errors that we see on the screen.Is there a way to log and display different levels of errors?Cheers!
 
Back
Top