The TraceDemo Example

for RuBoard

The TraceDemo example illustrates the use of the diagnostic functionality. If you run the example, you will get the following output:

 Trace Listeners:          Default  This was compiled with a DEBUG directive!  This was compiled with a TRACE directive!                 Debug Boolean Switch disabled at startup.                 Debug Boolean Switch enabled!  Trace Switch Startup Value = Warning            TraceError!            TraceWarning!  Trace Listeners:          Console.Out Listener          Output File Listener 

Refer to this output in the ensuing discussion. You will also find a file called output.txt on your computer in the directory where this program ran.

for RuBoard


Application Development Using C# and .NET
Application Development Using C# and .NET
ISBN: 013093383X
EAN: 2147483647
Year: 2001
Pages: 158

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net