Welcome Guest, you are in: Login
CTS Futures

Trace

RSS
Modified on 2012/01/23 11:50 by Andrew Busby (CTS) Categorized as Uncategorized
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.20" initializeData="T4Example\T4Example, 5, True" />
</listeners>
</trace>
</system.diagnostics>

If level 4 is specified then a trace statement is logged before every event is raised from the API. 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.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

141 W. Jackson Blvd., Suite 211A, Chicago, IL 60604

© 2009-2012 Cunningham Trading Systems Inc. All rights reserved.