This post originated from an RSS feed registered with .NET Buzz
by Raymond Lewallen.
Original Post: Logging exceptions in your event log
Feed Title: Raymond Lewallen
Feed URL: /error.htm?aspxerrorpath=/blogs/raymond.lewallen/rss.aspx
Feed Description: Patterns and Practices, OOP, .Net and Sql
I occasionally get asked for this, so Iâm going to post it here for
people to find. This is how to put an exception from a .Net
application into a custom log in the event viewer.
Letâs say you catch in exception in your code and you want to put it in the event logs. Itâs a piece of cake.
VB.Net code to log an exception into the event logs