Im seeking help from people who already worked with the PEAR Log package. I followed the steps I found here ; http://www.devshed.com/Server_Side/PHP/Logging/page7.html, in order to make the instace of Log.php log PHP errors, as well as forced called to the logger. See this example :
<?
define('APPLICATION_BASE', dirname(FILE) . '/../..');
// Turn on automatic error logging (PHP)
ini_set('log_errors', true);
require_once APPLICATION_BASE . '/include/pear/Log/Log.php';
$logger = &Log::singleton ('file', 'log.txt');
$var = ''
?>
Execingthis code obviously will faill, giving a parse error. However, the PHP error is not written to my log file. Furthermore, I do not get any error message whatsoever.
Any idea ?
Thanks for your time all.