The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
Bruno Baia
 |
| 03/02/2009 12:18 PM |
|
Hi,
I'm logging something like that : <conversionPattern value="%date %identity %-5level %logger : %message%newline" />
I want to filter by identity, then I tried to use the PropertyFilter :
<filter type="log4net.Filter.PropertyFilter"> <key value="Identity" /> <stringToMatch value="domain\username" /> </filter>
This doesn't seem to work. I also tried with "log4net:identity" for the key value but no success.
Then I tried with the StringMatchFilter :
<filter type="log4net.Filter.StringMatchFilter"> <stringToMatch value="domain\username" /> </filter>
This doesn't work too. It seems it only looks for the value on the message text.
Any idea ? Thanks !
Note that I don't want to use any custom log4net code as I'm using Common.Logging.
Cheers, Bruno Baia
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|