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 HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is the use of view model in asp.net mvc?
Explain test driven development (tdd) ?
what is linq to entities?
What is definingquery in entity framework? : Entity framework
what is entityclient?
what is use of entitydatasource control?
What is associationset? : Entity framework
What are Action Methods in ASP.NET MVC?
Is http stateful or stateless?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What are the components of the .net framework.
What is the "helperpage.isajax" property?
What is .net architecture?
What is oauth in web api?