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
What are non action methods in mvc?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
what is eager loading?
How to update one of my table in database at 4pm every day how it is possible?
How to return the JSON from action method in ASP.Net MVC?
What are authentication filters in web api?
Explain how to use multiple submit buttons in ASP.Net MVC?
What is .net framework & its benefits?
Explain the difference between viewbag and viewdata in mvc?
Explain tempdata in asp.net mvc?
How to bind table colum with gridview column?
What does a viewmodel do?
What is the meaning of unobtrusive javascript?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
mention what is code first approach and model first approach in entity framework?