forwardQuery   Table of ContentResourcesforward
Logging

TraceSwitch based logging is used.

TraceSwitch

Trace switch to control Session related tracing and debug output.

App.config trace switch name is OnixS.CmeStpHandler.

FixmlTraceSwitch

Trace switch to control tracing of FIXML messages.

App.config trace switch name is OnixS.CmeStpHandler.FIXML.

Handler trace switches can be configured using either App.config file or static properties of the Session class.

For example:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <system.diagnostics>
    <switches>
      <!-- This switch controls general messages. In order to receive general trace messages change the value to the appropriate level.          
         "0" gives nothing
         "1" gives error messages, 
         "2" gives error and warning messages, 
         "3" gives error, warning and info messages, 
         "4" gives error, warning, info and verbose messages.
         -->
      <add name="OnixS.CmeStpHandler" value="3"/>
      <add name="OnixS.CmeStpHandler.FIXML" value="3"/>
    </switches>

    <trace>
      <listeners>
        <remove name="Default" />
        <add name="textWriterTraceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="TraceLog.txt" />
      </listeners>
    </trace>
  </system.diagnostics>

</configuration>

or:

C#
Session.TraceSwitch.Level = TraceLevel.Info;
Session.FixmlTraceSwitch = TraceLevel.Verbouse;