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 |
if u add an import stmt to an application u can do the same by adding reference to the apllication then what is the diff bet these two ?
Where do the reference-type variables go in the RAM ?
What symbol would you use to denote, the start of a code block in razor views?
Explain tempdata in mvc?
What are the main components of .net framework?
What is domain class model?
What is Separation of Concerns in ASP.NET ASP.Net MVC?
Why do you need to serialize
Can you set the unlimited length for "maxjsonlength" property in config?
Mention what is the difference between “ActionResult” and “ViewResult” ?
I am going for H1B visa interview, I am not having bank statement ,is it neccesary for stamping process? how to handle the,consulate people without that statement ?
What are Code Blocks in Views?