As the project I am working nears completion, attention is drawn to reporting. In my scenario, I want all logging to be sent to the database and only warning+ to be logged to the event log. No problem, as the reporting is based on Enterprise Library 4.0, this is just configuration.
Unfortunately there is a defect in 3.0 and 4.0 where the Filter on the FormattedEventLogTraceListener does not influence the logging. Fortunately, using the System.Diagnostics.EventLogTraceListener works a treat.
http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=30645
This appears to be fixed in Enterprise Library 4.1, but I have not confirmed this yet.
Posted
Mon, Feb 23 2009 4:13 PM
by
chilberto