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

What is the "helperpage.isajax" property?

1209


What are the components required to create a route in mvc?

1140


Is entity framework slow?

1061


Explain what is the difference between view and partial view?

1129


How the ‘page lifecycle’ of ASP.Net MVC does works?

1240


What is the use of viewmodel in mvc?

1113


Define the core components of an ASP.NET MVC application?

1159


What is net framework 3.0 ?

1168


How can we determine action invoked from HTTP GET or HTTP POST?

1069


Explain the types of Scaffoldings.

1135


Is .net core faster than .net framework?

1135


What is code first? : Entity framework

1150


Explain how to use multiple submit buttons in ASP.Net MVC?

1361


What are the advantages of razor view engine?

969


Explain the advantage of packaging over xcopy in .net?

1039