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

Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

0 Answers  


What's the access level of the visibility type internal ?

1 Answers  


Why do I get errors when I try to serialize a Hashtable

1 Answers  


What is entityset? : Entity framework

0 Answers  


WHICH IS MORE SECURED AMONG JAVA AND .NET?

7 Answers  


How we can invoke child actions in ASP.Net MVC?

0 Answers  


About namespaces ?

3 Answers   MMTS,


What is difference between constants, readonly and, static

1 Answers  


What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables

1 Answers  


Which is the best institute for .net?

16 Answers  


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

0 Answers  


What is the difference between adding routes, to a webforms application and to an mvc application?

0 Answers  


Categories