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 |
what is entity data model?
what is split entity?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
What is viewbag title?
What is reflection?
5 Answers Accenture, Merrill Lynch, Microsoft,
What is .NET Framework?
How to bind table coloum with gridview column
3 Answers Sypher Technologies,
What are the two ways to add constraints to a route?
What are delegates?where are they used
What is the use of razor view engine?
Does razor engine supports for tdd?
What is ViewData and TempData in ASP.Net MVC?