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 |
Name a few different return types of a controller action method?
What is meant by viewdata?
what is MetadData?. What is CTS? Type of Join in SQL Server? What is diffrence between Primary Key and Unique Key?
what is the use of final method
What is the full form of sp?
how do you mark a property as required? For example, for a project, the name is a required field.
Explain ASP.NET MVC Identity and Security?
What is .net architecture and framework?
Is razor a server side?
Explain unit test done by tester on development team?
What is the difference between using system.net and system.net.sockets?
What is JIT and how is works ?