Custom Trace Listener Technology Sample
This sample provides a custom trace listener that generates system beeps, using Console.Beep, in response to events raised by button clicks from a Windows Forms application.
This sample builds CusomTraceListener.dll, a trace listener for the WinDriver.exe application. The trace listener and the application read values from a provided configuration file, WinDriver.exe.config, which lists the trace listeners of the application and includes values and settings for the tracing system.
For general information about using the samples, see the following topics:
To build the sample using the Command Prompt
Open a Command Prompt window and navigate to the CustomTraceListener directory.
Type msbuild CustomTraceListener.sln at the command line.
To build the sample using Visual Studio
Open Windows Explorer and navigate to the CustomTraceListener directory.
Double-click CustomTraceListener.sln to open the CustomTraceListener solution. This solution contains two projects: CustomTraceListener and WinDriver.
In the Build menu, select Build Solution.
This builds CustomTraceListener.dll and WinDriver.exe.
To run the sample
Navigate to the bin\debug folder containing WinDriver.exe.
Click buttons in the application to raise events to be traced by CustomTraceListener.dll.