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 |
Explain what is routing?
what is mean by COM (component object model) and component based software development? Is it .NET is first COM based technology? Please answer me. Advance thanks.
Where The Inheritence is useful?How we decide the situation of inheritence
Can Static Constructor be Overloaded?Justify it?
which are the key concepts of entity data model?
What is representational state transfer (rest) mean?
Mention what is the difference between “ActionResult” and “ViewResult” ?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
Is dapper better than entity framework?
Explain representational state transfer (rest) in detail?
Why to use html.partial in mvc?
What is .net framework in simple terms?