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

which is good java or Dot net?

3 Answers   Halosys,


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

0 Answers  


What is edm designer? : Entity framework

0 Answers  


In which circumstances you used delegates?

5 Answers   HP,


What is different between User Control and Web Control and Custom Control?

2 Answers  


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


Can we access the web controls in a page pre initialising event?

2 Answers  


Is .net framework dead?

0 Answers  


How we can multiple submit buttons in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


What is the use of finalize and dispose eventhough garbage collector is working?

3 Answers   Kanbay,


Explain linq to entities? : Entity framework

0 Answers  


What is Global Assembly Cache (GAC) and what is the purpose of it?

2 Answers  


Categories