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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain renderbody and renderpage in mvc?

987


what is explicit loading?

1073


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

887


Explain the role of assembly in the .net framework.

969


What is controllercontext?

1002


What is iobjectset? : Entity framework

975


explain what does .edmx file contains?

1022


What does a viewmodel do?

971


What is the difference between renderaction and renderpartial?

1089


What are html helpers in asp.net mvc?

990


What is the meaning of unobtrusive javascript? Explain us by any practical example.

962


Is .net framework backwards compatible?

1022


what is deferred loading(lazy loading)?

971


How to change the action name in mvc?

945


What is the advantage of using asp.net routing?

1046