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 difference between viewbag and viewdata and tempdata?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
What is the benefit of entity framework?
How does the .net framework 3.0 relate to the .net framework 2.0?
what is a round trip?What is a postback?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
Difference between ASP.NET MVC and ASP.NET WebForms?
What does mvvm mean?
What is viewbag title?
What is Layout in ASP.Net MVC?