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

In razor syntax, what is the escape sequence character for @ symbol?

994


Explain the 'page lifecycle' of an ASP.NET MVC?

1144


Explain something about model, view and controllers in asp.net mvc?

1036


What are the versions of .net framework?

994


What is the difference between old ADO.NET and Entity framework coding techniques?

1005


What are the two ways to add constraints to a route?

974


explain how you can load related entities in ef (entity framework)?

996


Can you explain model, controller and view in mvc?

998


Does Tempdata hold the data for other request in ASP.Net MVC?

972


what is ssdl?

1154


Explain tempdata in mvc?

998


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2725


How we can register the Area in ASP.Net MVC?

1104


What is the advantage of using asp.net routing?

1104


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

1125