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 strong name and which tool is used for this ?
4 Answers Accenture, BirlaSoft,
What was the problem in traditional component why side by side execution is supported in .net ?
Diffence between .net framework 1.0 and 2.0?
how to disable the lazy loading framework?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What is a model in android?
What is serialization ?
What are the 3 main components of an asp.net mvc application?
More on CLR ?
What are Satellite Assemblies? How you will create this?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Which is the best institute in hyderabad to learn DotNet?
152 Answers Cygnet Infotech, Infosys, Student, SVIT, TCS,