Enterprise Library Logger and standard (evt/evtx) log files

Topics: Logging Application Block
Sep 2, 2010 at 1:01 PM


Can I use Enterprise Library Logger to generate Windows Application log (*.evt/evtx)?  Does anybody have such examples?

Thanks in advance!



Sep 3, 2010 at 3:33 AM

You can only log to .evt/.evtx file using entlib.  To create them, you will still use the EventLog API.

EventLog.CreateEventSource(source, logName);

Sarah Urmeneta
Global Technology & Solutions
Avande, Inc.