Compartilhar via


Trace Sources 

Trace sources are a new feature in the .NET Framework version 2.0 that provides an enhanced tracing system. The basic premise is unchanged: tracing messages are sent through switches to listeners, which report the data to an associated output medium. A primary difference for version 2.0 is that traces can be initiated through instances of the TraceSource class. TraceSource is intended to function as an enhanced tracing system and can be used in place of the static methods of the older Trace and Debug tracing classes. The familiar Trace and Debug classes still exist, but the recommended practice is to use the TraceSource class for tracing.

See Also

Tasks

How To: Create and Initialize Trace Sources
How to: Use TraceSource and Filters with Trace Listeners

Other Resources

Tracing and Instrumenting Applications