Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-834

messages.log and event.log file are not created using SLF4JLogFactory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Not a bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have quickfixj setup in my application and store messages.log and event.log at a location. I have configured RollingFileAppender for these logs but it is not working for quickfix logs and logs are not not rolling over.

      <appender name="FIXMESSAGE" class="org.apache.log4j.RollingFileAppender">
      <param name="Threshold" value="INFO"/>
      <param name="File" value="../log/fixlog/FIX.4.2-sendercompID-targetCompID.event.log" />
      <param name="Append" value="true" />
      <param name="MaxFileSize" value="25KB"/>
      <param name="MaxBackupIndex" value="15"/>
      <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="[%d

      {dd MMM yyyy HH:mm:ss,SSS}

      ][%t][%-5p][%c

      {2}]-%m%n"/>
      </layout>
      </appender>
      <appender name="FIXEVENT" class="org.apache.log4j.RollingFileAppender">
      <param name="Threshold" value="INFO"/>
      <param name="File" value="../log/fixlog/FIX.4.2-sendercompID-targetCompID.messages.log" />
      <param name="Append" value="true" />
      <param name="MaxFileSize" value="25KB"/>
      <param name="MaxBackupIndex" value="15"/>
      <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="[%d{dd MMM yyyy HH:mm:ss,SSS}][%t][%-5p][%c{2}

      ]-%m%n"/>
      </layout>
      </appender>

      <root>
      <priority value ="INFO" />
      <appender-ref ref="CONSOLE" />
      <appender-ref ref="FIXMESSAGE" />
      <appender-ref ref="FIXEVENT" />
      </root>

      Just to add, I have also defined below fix configuration as follows:

      SLF4JLogEventCategory=$

      {fix.connection.config.senderCompID}.${fix.connection.config.targetCompID}.events
      SLF4JLogIncomingMessageCategory=${fix.connection.config.senderCompID}

      .$

      {fix.connection.config.targetCompID}.incoming
      SLF4JLogOutgoingMessageCategory=${fix.connection.config.senderCompID}.${fix.connection.config.targetCompID}

      .outgoing

      Can anyone suggest something here?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ggangwar garima gangwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: