The System.Diagnostics namespace provides the interfaces, classes, enumerations and structures that are used for tracing.
The System.Diagnostics namespace provides two classes named Trace and Debug that are used for writing errors and application execution information in logs.