Sunday, September 4, 2011

Coder to Developer: Tools and Strategies for Delivering Your Software by Mike Gunderloy : Chapter 10

The author discusses importance of logging application activity both during development and after shipping and methods of logging. The logging during development is required since
  • Log allows you to understand actions that led to a bug
  • Log helps clarify the order of events
  • Some bugs only reproduce when running without a debugger
  • Some bugs occur after thousands of calls of a function
The author suggests to make it easy for end user to turn logging on or off. The author advises to include following in the logs:
  • Error messages and information including stack trace
  • The state of internal data structures
  • User actions
  • The timings of significant actions
  • Important environment information
The author then discusses about logging tools including:
  • The Trace and Debug classes of .Net framework -
  • The EventLog class - This is used to log events to Windows Event Log
  • Enterprise Instrumentation Framework
  • Logging Application Block
  • log4net
If there is no logging included in application, the author discusses about diagnostic tools like System Information to collect information from user machine.

No comments:

Post a Comment