
Originally Posted by
arkinstall
I display strict errors, warnings and notices in development and log them in production.
No excuse for hiding them under the rug

That's my preference too! 
Here's the code I generally use:
Code:
error_reporting(E_ALL); //report all errors, warnings
ini_set('display_errors','0'); //prevent errors displaying to browser
ini_set('log_errors','on'); //set error logging to on
ini_set("ignore_repeated_errors","1"); //ignore repeated errors in loops
ini_set('error_log',"../logs/errors.txt"); //set an error logging file path
Bookmarks