Re: [Log] Feature request

From: Date: Mon, 29 Apr 2002 05:20:58 +0000
Subject: Re: [Log] Feature request
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5871@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_* This functionality now exists in the cvs version of the Log package (although I implemented it as the maximum level to log, which makes more sense to me; "debug" messages have the highest priority in the current system). I will release a new version of the Log package (to be version 1.2) that will contain this new feature shortly. -- Jon Parise (jon@csh.rit.edu) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member

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