Difference between using Trace and TraceSource

oscarkuo picture oscarkuo · Jul 9, 2009 · Viewed 9.3k times · Source

Anyone knows the difference between System.Diagnostic.Trace and System.Diagnostic.TraceSource classes?

I've been using Trace for most of my projects and I just happen to found out about TraceSource the other day. They seems to offer similar API, is one better than the other?

Answer

Steve Temple picture Steve Temple · Jul 9, 2009

TraceSource is the newer version (since .NET 2) and Trace is the older version, more info is available here:

Clarification on TraceSource/Trace