Event log error indication with the event log logger.

Topics: Building and extending application blocks, Logging Application Block
Apr 28, 2007 at 9:26 PM
I would like to add a small feature to the listener that logs events to the event log. Right now all events are "Information" messages. I would like to make events that optionally are "Errors" in the event log (or "Warning"). There seems to be many different solutions. I could build my own EventLogTraceListener, I could use the recipes in the 3.0 Enterprise library to help build a new listener, etc. All of these solutions seem pretty involved. I am soliciting the community for recomendations on the best solution given what I perceive as a small change. I guess the work would either take information from the LogEntry class to "know" whether it is an error or not or also extend the LogEntry class to include the extra information. Again what ever is easiest.

Thank you.

Kevin Burton