Re: PEAR::Log::setErrorLevel

From: Date: Thu, 27 Mar 2003 23:48:38 +0000
Subject: Re: PEAR::Log::setErrorLevel
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14697@lists.php.net to get a copy of this message
On Thu, Mar 27, 2003 at 09:34:31PM +0100, David Soria Parra wrote: > I'm new on PEAR. Welcome! > 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. I actually have something like this (called setErrorMask). I'll probably follow semantics similar to Python's syslog module: http://www.python.org/doc/current/lib/module-syslog.html I hope to resume development of the Log package soon. I have a long queue of suggestions such as this one awaiting my attention. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

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