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 the components of the .net framework.
What is Global Assembly Cache (GAC) and what is the purpose of it?
What is .net architecture and framework?
What is rxjava used for?
What is .net framework in simple terms?
explain what is ado.net entity framework?
Can I add mvc testcases in visual studio express?
Explain unit test done by tester on development team?
What is meant by domain model?
What is needed for running an application built on winfx on the .net framework 3.0?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
What type of filter does outputcacheattribute class represents?