How to roll QF/J FIX engine logs
book
Article ID: KB0076745
calendar_today
Updated On:
Description
How to roll QF/J FIX engine logs (i.e. message and event logs) to prevent them from becoming unmanageable?
Resolution
To roll these logs, you should use a custom logging configuration.
1) Copy the attached logback.xml file to your SB project's top-level directory.
2) Edit this file and change the <property name="senderCompID" value="MySenderCompID" /> line to reflect your FIX session's actual SenderCompID.
3) Repeat step 2 for the next line which describes the TargetCompID.
4) The next property in the file ("logsPath") is currently set to "logs/", which means your log files will be placed in a subdirectory named "logs" under the project top-level directory. If you wish you may rename this directory (don't forget the trailing slash)
5) Edit your adapter's QF/J config file to add the following 4 lines in the [DEFAULT] section:
logtype=slf4j
SLF4JLogEventCategory=quickfixj.event
SLF4JLogIncomingMessageCategory=quickfixj.msg.incoming
SLF4JLogOutgoingMessageCategory=quickfixj.msg.outgoing
6) Make sure no other "logtype" directive is present in this config file.
7) Restart Studio.
Issue/Introduction
How to roll QF/J FIX engine logs
Attachments
How to roll QF/J FIX engine logs
get_app
Feedback
thumb_up
Yes
thumb_down
No