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 |
Explain the advantages of asp.net mvc over asp.net?
Can you set the unlimited length for "maxjsonlength" property in config?
How can you prevent your class to be inherated further
What is the use .Glimpse in ASP.Net MVC
Which filter executes first in an asp.net mvc application?
Explain JSON Binding?
who handles these error while writing the source code???.
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What is a serverside technology? what is a clientside technology? what is a clientserver technology? what is a internet based application? what is a intranet based application? what is a windows application? what is a console application? Difference between console application and windows application?
creating crystal reports in asp.net & vb.net
What is session state management?
Changes to which portion of version number indicates an incompatible change