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

Why not log all exceptions in SharpDevelop? #554

@zhujiem

Description

@zhujiem

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:

  1. Why NOT log all exceptions in SharpDevelop? What problems may be caused if logging all exceptions?
  2. What are the concerns to decide whether to log an exception during development?
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions