Microsoft.NET Question:

How to redirect tracing to a file?

Microsoft.NET Interview Question
Microsoft.NET Interview Question

Answer:

TextWriterListener will redirect the tracing output to an instance of the TextWriter or to any object of stream class such as log file, network stram or Console.


Previous QuestionNext Question
How to spawn a thread?Is there built-in support for tracing/logging?