I have a .NET application in which I want to write unhandled events to the event viewer. I noticed that there is a directory called "Applications and Services Logs". I would like to create an entry for my application in this directory and write any unhandled events to it. Unfortunately, I can't find any documentation.
Is this even possible? If so, how?
Thanks!
You can create a log entry with this method :
CreateEventSource
Doc: 1: http://msdn.microsoft.com/en-us/library/2awhba7a.aspx
Example :Eventlog