This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Description
Dear SharpDevelop team,
I'm working on logging practices in software development. Logging is a common programming practice used to assist in tracking down bugs or unexpected behaviors. Currently, I have used SharpDevelop as a target project and studied the logging statistics from its source code.
In my study in SharpDevelop , there are 1,346 catch-blocks in total and only 252 (19%) of them are logged. A significant portion of catch-blocks are actually not logged.
Exceptions are widely used for error handling in C#. Exception logging is important, because these logs can provide strong indicators of the error sites and are helpful at determining what went wrong. Some studies point out that logging all exceptions can greatly reduce the diagnosis time of post-release failures. Also, logging all exceptions will not incur much runtime overhead, because compared to other statements, the execution of exception-handling code is much rarer during normal runs.
So I have the question:
- Why NOT log all exceptions in SharpDevelop? What problems may be caused if logging all exceptions?
- What are the concerns to decide whether to log an exception during development?
- Do you think logging all exceptions is a better practice or not logging all exceptions a better practice?
Thank you very much! Your replies are highly appreciated and can broaden my understanding on exception logging.