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 routeconfig.cs in mvc 4?
what is Assemble
What are delegates?where are they used
Have you designed any components?
What are the versions of .net framework?
What is representational state transfer (rest) mean?
What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables
Explain two instances where routing is not implemented or required?
Is it possible to create a custom filter?
What is iobjectset? : Entity framework
What is controllercontext?
About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ?
6 Answers Infosys, Microsoft, MMTS,