Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is there built-in support for tracing/logging



Is there built-in support for tracing/logging..

Answer / kirti

Yes, in the System.Diagnostics namespace. There are two main classes that deal with tracing - Debug and Trace. They both work in a similar way - the difference is that tracing from the Debug class only works in builds that have the DEBUG symbol defined, whereas tracing from the Trace class only works in builds that have the TRACE symbol defined. Typically this means that you should use System.Diagnostics.Trace.WriteLine for tracing that you want to work in debug and release builds, and System.Diagnostics.Debug.WriteLine for tracing that you want to work only in debug builds.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is needed for running an application built on winfx on the .net framework 3.0?

0 Answers  


What are the options can be configured in AJAX helpers?

0 Answers  


Features in .net framework 1.1 ?

1 Answers   Digital GlobalSoft,


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


Where The Inheritence is useful?How we decide the situation of inheritence

2 Answers  


Is it possible to share a view across multiple controllers?

0 Answers  


What is the difference between adding routes, to a webforms application and to an mvc application?

0 Answers  


What is CLR? How it will work?

5 Answers  


what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0

4 Answers  


what is a mvc in asp.net?

3 Answers   Cap Gemini, Elsinoir Technologies, HCL,


What is the purpose of a web form?

0 Answers  


What is namespaces

1 Answers  


Categories