You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by "S�ren M. Olesen" <sm...@hotmail.com> on 2005/09/29 15:09:30 UTC

Negate a filter

Hi

Is it possible to negate a filter. I.e. instead og letting matched througt, 
it should stop matched from getting through.

Lets say I want to remove lines containing the word SQL from my log, how do 
I setup a filter that will let all lines through, except lines containing 
the word SQL??

TIA

Sřren



Re: Negate a filter

Posted by Matthew Brown <oc...@gmail.com>.
Take a look at the AcceptOnMatch property.

On 9/29/05, Søren M. Olesen <sm...@hotmail.com> wrote:
>
>
> Hi
>
> Is it possible to negate a filter. I.e. instead og letting matched
> througt,
> it should stop matched from getting through.
>
> Lets say I want to remove lines containing the word SQL from my log, how
> do
> I setup a filter that will let all lines through, except lines containing
> the word SQL??
>
> TIA
>
> Søren
>
>
>