20 Jul 06:54
how to configure a "deny stringmatch filter"
From: Alexander Wolff <awolff <at> concepto.com.uy>
Subject: how to configure a "deny stringmatch filter"
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-07-20 04:55:55 GMT
Subject: how to configure a "deny stringmatch filter"
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-07-20 04:55:55 GMT
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
<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
RSS Feed