Patterns for logging diagnostic messages

  • Authors:
  • Neil B. Harrison

  • Affiliations:
  • Avaya, Inc.

  • Venue:
  • Design patterns in communications software
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

Every SOFTWARE SYSTEM must deal with errors. Most systems report errors to the user in some manner, and many provide additional diagnostic information to assist the user in tracking down the problem. Transaction-oriented systems lend themselves to common approaches to logging diagnostic messages. These approached are embodied in three general software patterns. The first pattern, Diagnostic Logger, seperates logging from the rest of the software, and lays the groundwork for the other patterns. The second pattern, Diagnostic Context, provides association of diagnostics with the correct transactions. The third pattern, Typed Diagnostics, helps ensure uniformity of presentation for all diagnostics. It also allows the software to handle various diagnostics differently, depending on characteristics such as severity