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



Can I redirect tracing to a file..

Answer / 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

More Dot Net Framework Interview Questions

What is the .net framework and how does it work?

0 Answers  


Does windows 10 need .net framework?

0 Answers  


Difference between manifest , metadata?

3 Answers   Soma Technology, TCS,


Can we add constraints to the route? If yes, explain how we can do it?

0 Answers  


What is the mvc pattern (model view controller pattern)?

0 Answers  


what are partial classes?

12 Answers   Digimaker, HP, N Tech, TCS,


Where are the routing rules defined in an asp.net mvc application?

0 Answers  


i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?

0 Answers  


What is conceptual model? : Entity framework

0 Answers  


What are the different types of filters, in an asp.net mvc application?

1 Answers   NA,


Why we need a separate mobile project template, while we can render our web application in mobile ?

0 Answers  


What is presentation framework?

0 Answers  


Categories