[Log] Feature request
| From: | robert janeczek | Date: | Wed, 10 Apr 2002 19:13:43 +0000 |
| Subject: | [Log] Feature request | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-5314@lists.php.net to get a copy of this message | ||
hi
what do you think about giving a possibility to limit log messages to higher
than some given level? having milions of [debug] messages can be a real
problem in finished products. my proposition is to add a variable (for
example $minLogLevel) and ignore all messages that are on lower priority
than this value. you`ll need to set proper values to priorities in Log class
(or is their order already proper?) and then add a line like this in
Log_*::log method:
if($priority < $this->$minLogLevel) return;
setting $minLogLevel to lowest priority in constructor will keep compability
with existing applications using Log_*
rashid