Is there built-in support for tracing/logging
Answer / kirti
Yes, in the System.Diagnostics namespace. There are two main classes that deal with tracing - Debug and Trace. They both work in a similar way - the difference is that tracing from the Debug class only works in builds that have the DEBUG symbol defined, whereas tracing from the Trace class only works in builds that have the TRACE symbol defined. Typically this means that you should use System.Diagnostics.Trace.WriteLine for tracing that you want to work in debug and release builds, and System.Diagnostics.Debug.WriteLine for tracing that you want to work only in debug builds.
| Is This Answer Correct ? | 0 Yes | 0 No |
which is good java or Dot net?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is edm designer? : Entity framework
In which circumstances you used delegates?
What is different between User Control and Web Control and Custom Control?
What is the use of the default route {resource}.axd/{*pathinfo} ?
Can we access the web controls in a page pre initialising event?
Is .net framework dead?
How we can multiple submit buttons in ASP.Net MVC
What is the use of finalize and dispose eventhough garbage collector is working?
Explain linq to entities? : Entity framework
What is Global Assembly Cache (GAC) and what is the purpose of it?