Re: [Quickfix-developers] only admin-level messages are being saved to the log file
Brought to you by:
orenmnero
From: Pablo M. <mar...@gm...> - 2012-02-02 02:17:06
|
Hello, I was looking at the code and you have a problem (AbstractIoHandler -> messageReceived). The classes AbstractLog messages arrive before parsing. Therefore you will not be able to distinguish them, unless you pay the cost of manually parsing the string and implementing a AbstractLog LogFactory. But what could make is in your class that implements the methods quickfix.Application add in the methods toAdmin and fromAdmin a log of their own. public void toAdmin (Message message, SessionID sessionId) { log.debug ("to admin:" + message.toString ()); ... } The problem is that since you'd have QuickFixJ logs before parsing the messages, if there was an error in the message, it will not come to your class Application Look AbstractIoHandler class in MessageReceived method that can give you an idea. Would have to modify the class to check after parsing the type of message and decide whether or not logging. I hope you find it helpful. Good luck. - Pablo On Wed, Feb 1, 2012 at 2:59 PM, beau_brummel <pau...@ho...>wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hello All, > I have a fix initiator connection up and running. I'm receiving admin and > app level messages, although only the admin-level messages are being saved > to the log file -> heartbeats, rejects etc > No execution messages ( 35=8 ) are saved. > > Is there a setting I need to add to the cfg file ? > > Thanks in advance > -- > View this message in context: > http://old.nabble.com/only-admin-level-messages-are-being-saved-to-the-log-file-tp33244476p33244476.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |