O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The TraceDemo Example

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

Trace Listeners:
   Default

Trace Listeners:
   Default
   Console.Out Listener
   Output File Listener

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

File output.txt has been created

Refer to this output in the ensuing discussion. You will also find a file called output.txt ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required