Trace Switcher
Why we use System.Diagnostics.TraceSwitcher in C#.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 17, 2011, 1:21 AM EDT
Hi Swetha,
The Trace and Debug classes are included in the .NET framework for adding tracing support in an application. Proper tracing in the code helps in application debugging, bug fixing, and profiling. Three unique features of the .NET tracing support are: support of trace filtering using Trace Switches, Trace Listeners, and trace configuration using application configuration files without recompilation of the application.
Please refer this link for more information
http://msdn.microsoft.com/en-us/library/3at424ac.aspx
Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 19, 2011, 1:57 AM EDT