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...

Can I redirect tracing to a file

Answer Posted / kirti

Yes. The Debug and Trace classes both have a Listeners property, which is a collection of sinks that receive the tracing that you send via Debug.WriteLine and Trace.WriteLine respectively. By default the Listeners collection contains a single sink, which is an

instance of the DefaultTraceListener class. This sends output to the Win32 OutputDebugString() function and also the System.Diagnostics.Debugger.Log() method. This is useful when debugging, but if you're trying to trace a problem at a customer site, redirecting the output to a file is more appropriate. Fortunately, the TextWriterTraceListener class is provided for this purpose.

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 NonActionAttribute ?

969


what is entityclient?

1071


How do you specify comments using razor syntax?

966


What is entity framework? : Entity framework

988


How to answer for project questions..?

2648


what is use of entitydatasource control?

1027


What are the levels at which filters can be applied in an asp.net mvc application?

1040


How we can handle the exception at controller level in ASP.Net MVC?

1031


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

957


What is the use of the default route?

991


Explain what is routing?

918


Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?

967


What is html.renderpartial?

949


What are bundling & minification features in asp.net mvc 4?

927


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

1154