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 |
What are ajax helpers in mvc?
What are the two ways to add constraints to a route?
What is Reflection in .NET?
What is viewbag?
Can we create .DLL file without using the namespace?
what is entity sql?
Features in .net framework 1.1 ?
What is ViewData and TempData in ASP.Net MVC?
How .net assemblies are registred as private and shared assembly ?
What is IL
What is the necessity for singning an assembly with a strong name?
Explain JSON Binding?