Re: [Quickfix-users] QuickFIXJ logging
Brought to you by:
orenmnero
From: David G. <Dav...@ig...> - 2007-06-20 19:44:09
|
I found enough of the answer in this posting,=20 http://www.nabble.com/QF-J-message-and-event-logs-t3688701.html=20 In your code select the SLF4J logger, =2E.. LogFactory logFactory =3D new SLF4JLogFactory(settings); this.initiator =3D new SocketInitiator(this, messageStoreFactory, settings, logFactory, messageFactory); =2E.. It seems you need to specify the logging category directives in the config file, the defaults did not seem to work but that could be my mistake. =2E.. [session] =2E.. "SLF4JLogIncomingMessageCategory=3Dquickfixj.msg.incoming" "SLF4JLogOutgoingMessageCategory=3Dquickfixj.msg.outgoing" =2E.. Your Log4J configuration will now be used. =2E.. <category name=3D"quickfixj.msg"> <priority value=3D"info" /> <appender-ref ref=3D"FIX_MSG_LOG" /> </category> =2E.. Hope this helps any others with the same question. Dave -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of David Gibbs Sent: 20 June 2007 17:15 To: qui...@li... Subject: [Quickfix-users] logging QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html The information contained in this email is strictly confidential and for = the use of the addressee only, unless otherwise indicated. If you are not= the intended recipient, please do not read, copy, use or disclose to oth= ers this message or any attachment. Please also notify the sender by repl= ying to this email or by telephone +44 (0)20 7896 0011 and then delete th= e email and any copies of it. Opinions, conclusions (etc.) that do not re= late to the official business of this company shall be understood as neit= her given nor endorsed by it. IG Markets Limited and IG Index Plc are aut= horised and regulated by the Financial Services Authority and, in Austral= ia, by the Australian Securities and Investments Commission. |