Thanks for your input. I already know how to write to the event log. The
piece of the puzzle that eludes me is how do I intercept unhandled
exceptions in a windows service since they seem to just kill the thread (but
not the service) without my ever having a chance to handle them.
In other words, I can't find anywhere to place the WriteEntry code that will
get called when an exception occurs. :(
"tMan" <an*******@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
Check out the WriteEntry method to write to the event log.
http://msdn.microsoft.com/library/de...classtopic.asp
writing all exceptions that occur to the event log is not necessarily the
best route. (you can if thats what you want)
log application (service) start, end, major warnings and important
messages etc. in the event log i think you should log most other exceptions and/or log messages to a user
configurable logfile, since they might tend to grow larger.