I am using a third party tool which internally adds trace messages using the following code:
System.Diagnostics.Trace.WriteLineIf(
new System.Diagnostics.TraceSwitch("Switch", "").TraceInfo, message);
In this scenario, it appears that I must add the switch to my app.config file to get the trace messages to appear:
<system.diagnostics>
<switches>
<add name="Switch" value="3" />
</switches>
</system.diagnostics>
Since not all of my users are granted administrator rights to make changes in the Program Files directory this becomes an issue.
Is it possible to set the TraceSwitch programmatically and allow the third party tool to write the trace messages?