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
- Error messages and information including stack trace
- The state of internal data structures
- User actions
- The timings of significant actions
- Important environment information
- 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
No comments:
Post a Comment