<?php # Script 8.0 - config.inc
//This script sets the error reporting for the site and logging for the site.
//No error message will be sent to the web browser.
error_reporting (0); //Production level
//Log a message to a text file when a problem occurs.
$message = 'An error occured in script ' FILE . ' on line ' . LINE . "\n";
error_log ($message, 3, 'errors.txt');
?>
there are 4 types of error logs:
0 - The message is logged using the system's default method.
1 - The message is sent by email to the destination addess.
2 - The message is sent to a remote debugger (for example, another server). This option was available in version 3 of PHP and is not included in version 4.
3 - The message is recorded in a text file (as show in the example above).
source: PHP & MySQL For Dynamic Web Sites, Larry Ullman