[Reading Notes] C # advanced programming Chapter 1 diagnosis,
(1) Diagnostic Overview
Namespace System. Diagnostics provides classes for tracking, Event Logs, performance measurement, and code protocols. Classes in the System. Diagnostics. Contracts namespace can define preconditions, post conditions, and constants. They can be checked not only during runtime, but also by using static protocol analyzer.
(2) Code Agreement
The preconditions list the requirements that must be met by parameters, the latter defines the requirements that must be met by returned data, and the constant defines the requirements that must be met by variables in the method.
(3) Tracking
Reference: http://962410314.blog.51cto.com/7563109/1599988
(4) Event Logs
Reference: http://www.cnblogs.com/nokiaguy/archive/2009/02/26/1398708.html
(5) Performance monitoring
Reference: http://www.cnblogs.com/ZHONGYUANZHONGGONG/p/3399711.html