Re: error and log

From: Date: Thu, 26 Jul 2001 17:49:17 +0000
Subject: Re: error and log
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1070@lists.php.net to get a copy of this message
On Thursday 26 July 2001 18:36, mailling@bigfoot.com wrote: > I would like to know how I can easily do PEAR:raiseError, and log > this error to a file for example, and don't see it in the screen. If > this feature doesn't still exist, I think it could be important to > add it, for example with a PEAR_ERROR_LOG ? > Here is an idea to easy do that: function mypearlog ($obj) { //see error_log php function error_log ($obj->getMessage(), ...); } PEAR::setErrorHanlding(PEAR_ERROR_CALLBACK, 'mypearlog'); Tomas V.V.Cox

« previous php.pear.dev (#1070) next »