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 entity sql?
What is the necessity for singning an assembly with a strong name?
Is .net framework going away?
what do you mean by navigation property?
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?
What is the mvc pattern (model view controller pattern)?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?
What is the difference between partial and renderpartial?
What is the difference between old ADO.NET and Entity framework coding techniques?
What are the 2 ways of adding constraints to a route?
Are there any parts of the .net framework 3.0 that only work on windows vista?
Can we access the web controls in a page pre initialising event?