Re: PEAR::Log::setErrorLevel
| From: | Jan Schneider | Date: | Thu, 27 Mar 2003 23:32:36 +0000 |
| Subject: | Re: PEAR::Log::setErrorLevel | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14696@lists.php.net to get a copy of this message | ||
Quoting David Soria Parra <irondesign@gmx.net>:
> Hi,
>
> I'm new on PEAR.
>
> I implemented a setErrorLevel function to PEAR::Log like the PHP error
> handling.
>
> You can restrict using for example PEAR_LOG_DEBUG by using that function.
>
> You can do something like:
> $log->setErrorLevel ( PEAR_LOG_ALL ^ PEAR_LOG_DEBUG ); // Without Debug;
> or
> $log->setErrorLevel ( PEAR_LOG_DEBUG & PEAR_LOG_NOTICE); // for notices
> and
> debug but nothing else.
>
> A small example can be found here:
> http://www.eurotraxx-radio.com/somnium/errorLevel.txt
>
> Package can be found here:
> http://www.eurotraxx-radio.com/somnium/Log-1.6.1.tgz
That sounds like an interesting idea, but you should rather send a patch
against the current version.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft