logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Why DenyAllFilter??
Date Thu, 04 May 2006 14:18:22 GMT
Each filter decides if it matches and what to do with what it matches.
 So if something doesn't match any filter, then how do you handle
that?  You use DenyAll to throw away all message that didn't match any
other filter.  Remember that you can have multiple filters so you need
a way to say "anything else".

On 5/4/06, Meera Mehta <mehtameera@yahoo.com> wrote:
> Hi,
>
> I am little bit aware of Log4J, in my next project i
> am going to use it.
>
> I have gone threw log4j.varia StringMatchFilter but
> one strange thing i found is when my message do not
> contain matching string, in that case also its logging
> that message (ideally it should not!!!!!).
>
> i have gone threw archive and got that we have to use
> DenyAllFilter. i have used that and it works.
>
> but i want to know why its happening?? ideally if
> String is not matching then it should not log that
> message!!!!!so why its logging that message????
>
> please reply me.
>
> Thanx,
> Mehta
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


Mime
View raw message