PEAR::Log::setErrorLevel
| From: | David Soria Parra | Date: | Thu, 27 Mar 2003 20:34:31 +0000 |
| Subject: | PEAR::Log::setErrorLevel | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14695@lists.php.net to get a copy of this message | ||
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