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 is basic authentication in web api?
How does the .net framework 3.0 relate to the .net framework 2.0?
What is a model in android?
What are non action methods in mvc?
what is .edmx file and what it contains?
I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...
What is Area in ASP.Net MVC?
What is .net architecture and framework?
What is .net framwork?
Explain JSON Binding?
Mention the core components of .net framework?
What is the difference b/w constant & read only variable?
4 Answers IMI Soft Engineering,