tags:

views:

208

answers:

0

log4net logging internal logs to console and trace and I want to redirect the trace output to system EventLog. But in some points later perhaps I will need to issue trace messages from my code so I need to filter somehow the log4net traces. I could not find a way to do that. System.Diagnostics.SourceFilter or a custom filter doens't sense because there is no source name, no event type etc in it. I write a custom filter but ShouldTrace method is never called. Need help. Thanks a lot