Exception Handling and Logging in windows application
-
I would like to know the best way of handling exception and logging .. Please advise thanks in advance..
arun_pk wrote:
handling exception
Try.....Catch blocks
arun_pk wrote:
logging
Write your own logging class to write out to a text file or integrate with the Windows Event Log using
System.Diagnostics.EventLog
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
-
I would like to know the best way of handling exception and logging .. Please advise thanks in advance..
arun_pk wrote:
the best way of handling exception
Depends on business requirements and application. However there is unlikely to be a single answer to that even within a single application.
arun_pk wrote:
know the best way of ... logging
Depends on business requirements an application. And can also depend on your definition of "logging" as well.