Just wondering what everybody's opinion is on the Windows Admin tool Event Viewer?
I'm writing a WCF application at the moment and have started logging errors to the windows event viewer when I handle them. I then started thinking, should I be logging more than just errors, such as when a user has logged in or out or would you go further logging even more activity?
Or is this a tool that's mainly used for testing without using the debugger?
Any input appreciated:-)
Overall I would say it depends on your program and intended audience. For example an application used by the US government (specifically DOD) will have to log certain events to a log (the windows event log most likely) to meet security requirements.
Not knowing how you are doing the logging now, I would suggest that you use a logging framework like log4net to do your application logging. That away at runtime you can tailor what is logged and where it is logged to. This will be of tremendous help with debugging issues/errors on a production system or for that matter in testing if you don't have a debugger that can be used in testing.