config sample for simple logging to eventlog

Topics: Logging Application Block
Mar 12, 2009 at 4:06 AM
Hi, is there a faq or sample section which I can refer to setup a simple config for using logging app block logging into event log?

or can someone share 1?

tq
Mar 12, 2009 at 5:07 AM

1. Add configuration file on your project.
2. Open the config file with EntLib Configuration Editor.
3. Right-click the config file then new -> Logging Application Block.
4. The Logging application block has default EventLog TraceListener, so logs could be check on the Event viewer.
5. You could test your log by using Logger.Write();.

Hope this help
J