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

How to Redirect Tracing to a File

1039


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

2188


What are Action Filters in ASP.NET MVC and its use?

1061


List the new features added in .net framework 4.0.

932


Mention what is the difference between “ActionResult” and “ViewResult” ?

1035


What does a viewmodel do?

1004


What is the "helperpage.isajax" property?

1137


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

1017


How to make sure Client Validation is enabled in ASP.Net MVC

1058


Which version of .net framework is installed?

937


Explain the role of assembly in the .net framework.

997


What are the advantages of asp.net mvc?

1018


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

990


What is the .net framework?

1041


What are actions in asp.net mvc?

1088