You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Scott Deboy <sd...@comotivsystems.com> on 2004/11/28 23:24:01 UTC

Removal of filters from distribution

Since it's trivial to configure an ExpressionFilter as a functionally equivalent replacement for these filters:

StringMatchFilter
msg == 'some text'
or optionally
msg ~= 'some partial text'

LevelMatchFilter
level == info

LevelRangeFilter
level > debug && level < warn

Should they be removed from the distribution?

Re: Removal of filters from distribution

Posted by Paul Smith <ps...@aconex.com>.
I don't think we should do this until we've completed a load test on the 
ExpressionFilter.  Even then I'm not sure we should remove the Level 
one's, because under serious load, a Level check vs an expression check 
is always going to be quicker.  StringMatchFilter is probably one that's 
a better candidate for deprecation in favour of ExpressionFilter.

cheers,

Paul Smith

Scott Deboy wrote:

>Since it's trivial to configure an ExpressionFilter as a functionally equivalent replacement for these filters:
>
>StringMatchFilter
>msg == 'some text'
>or optionally
>msg ~= 'some partial text'
>
>LevelMatchFilter
>level == info
>
>LevelRangeFilter
>level > debug && level < warn
>
>Should they be removed from the distribution?
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-dev-help@logging.apache.org
>

-- 

*Paul Smith
*Software Architect

	

*Aconex
* 31 Drummond Street, Carlton, VIC 3053, Australia
*Tel: +61 3 9661 0200  *Fax: +61 3 9654 9946
Email: psmith@aconex.com  www.aconex.com**

This email and any attachments are intended solely for the addressee. 
The contents may be privileged, confidential and/or subject to copyright 
or other applicable law. No confidentiality or privilege is lost by an 
erroneous transmission. If you have received this e-mail in error, 
please let us know by reply e-mail and delete or destroy this mail and 
all copies. If you are not the intended recipient of this message you 
must not disseminate, copy or take any action in reliance on it. The 
sender takes no responsibility for the effect of this message upon the 
recipient's computer system.**


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org