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 needed for running an application built on winfx on the .net framework 3.0?
What are the options can be configured in AJAX helpers?
Features in .net framework 1.1 ?
what is client wins and store wins mode in entity framework concurrency?
Where The Inheritence is useful?How we decide the situation of inheritence
Is it possible to share a view across multiple controllers?
What is the difference between adding routes, to a webforms application and to an mvc application?
What is CLR? How it will work?
what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0
what is a mvc in asp.net?
3 Answers Cap Gemini, Elsinoir Technologies, HCL,
What is the purpose of a web form?
What is namespaces