D
David
I am attempting to use "TraceSwitch " in Win Forms (Below is the code
and the app.config). According to the manual, the program should
read the config for the setting, but this is not occurring. The
examples in the SDK and on the web appear to match mine, but I am not
sure if there is an error with my code or some additional setting.
====
The code is:
static TraceSwitch GeneralTS = new TraceSwitch("GeneralTS", "Entire
Application");
and the App.config is:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<switches>
<add name="Trace01" value="1" />
</switches>
</system.diagnostics>
</configuration>
Howe
and the app.config). According to the manual, the program should
read the config for the setting, but this is not occurring. The
examples in the SDK and on the web appear to match mine, but I am not
sure if there is an error with my code or some additional setting.
====
The code is:
static TraceSwitch GeneralTS = new TraceSwitch("GeneralTS", "Entire
Application");
and the App.config is:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<switches>
<add name="Trace01" value="1" />
</switches>
</system.diagnostics>
</configuration>
Howe