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.

Warnings for unknown enumeration values

When a successfully parsed FIXML report contains an unknown enumeration value, the handler raises Warning before the report-received event. Each warning identifies the received value, enum type, field path, and report or request ID when available. Existing parsing fallbacks are preserved.

A warning is raised once per unknown attribute in each message. It is also logged once at Warning level when Session.TraceSwitch.Level is Warning, Info, or Verbose. Turning tracing off does not disable the Warning event.

Calling a report's FromXml method directly logs warnings through the same Trace switch but does not raise a session event. Absent or empty values and supported user-defined party sub-ID types (4000 and above) do not produce warnings. Warnings are emitted only after parsing succeeds.

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.Verbose;