Re: [Log] Feature request

From: Date: Wed, 10 Apr 2002 20:33:26 +0000
Subject: Re: [Log] Feature request
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5316@lists.php.net to get a copy of this message
On Wed, Apr 10, 2002 at 09:13:43PM +0200, robert janeczek wrote: > 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_* I'll have a look at that soon. I have some other additions to the Log package here that are pending inclusion in the next release. -- Jon Parise (jon@csh.rit.edu) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member

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