I believe this will work:
<filter type="log4net.Filter.StringMatchFilter">
<stringToMatch value="database" />
<acceptOnMatch="false"/>
</filter>
<filter type="denyAllFilter"/>
If not this exactly, then search for acceptOnMatch and see what the
right settings are.
Cheers,
Daniel Williams
On Sat, Jul 19, 2008 at 10:55 PM, Alexander Wolff
<[EMAIL PROTECTED]> wrote:
> the following filter:
>
> <filter type="log4net.Filter.StringMatchFilter">
> <stringToMatch value="database" />
> </filter>
>
> Look for the substring 'database' in the message text of the event, in the
> case that text is found the filter is ACCEPTED and the message is logged. OK
>
> I want to configure a filter that DENY the substring 'database' (don't log
> the message)
>
> how can I configure that?
>
> thanks in advance,
> Alexander Wolff
>