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 |
mention what is the difference between ado.net and classic ado?
Will the finally block get executed if an exception has not occurred
What you mean by routing in mvc?
What is RouteConfig.cs in ASP.Net MVC 4?
What is the importance of NonActionAttribute?
In which assembly is the mvc framework defined?
What is disconnected scenario? : Entity framework
What is the use .Glimpse in ASP.Net MVC
What is edm designer? : Entity framework
What is the difference between .net core and .net framework?
what is explicit loading?
Does .NET Framework support SAX?