The API can generate some trace messages. These can be enabled by adding the following switch to the
section of you app.config file:
<system.diagnostics>
<switches>
<!-- The level of trace information to be logged.
0 = none
1 = errors
2 = warnings
3 = informational
4 = verbose
-->
<add name="TraceLevelSwitch" value="3" />
</switches>
<trace autoflush="true" indentsize="2">
<listeners>
<add name="ExampleTrace" type="T4.TraceListener.T4TraceListener, T4TraceListener.40" initializeData="T4Example\T4Example, 5" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
Trace files will be created in the path specified as the first part of ‘initializeData’ field, if only a partial path is entered like shown then this will be created under a trace folder underneath the application folder. A TraceLevelSwitch value of 3 is recommended to be used all the time.