Re: [Quickfix-developers] How to suppress 35=X messages in log file
Brought to you by:
orenmnero
From: Mike G. <mg...@co...> - 2013-05-29 12:15:50
|
It is typical to set PersistMessages=Y, ResetOnLogon=Y, and use the initator/acceptor constructor that takes no LogFactory argument. If you want to do more specific filtering, the LogFactory and Log interfaces exist for this reason and are simple to derive from. On May 29, 2013 6:41 AM, "Gunnar Harms" <gh...@hi...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi All, > > I want to suppress the 35=X messages in the > FIX.4.2-<X>-<Y>.messages.current.log files and log all other messages > (administrative, marketdatarequestrejects, etc.). > > It would be easy if i could derive my own Session class from FIX::Session > and override the sendRaw/send methods to not make the m_state.onOutgoing( > string ) call for these message types but this ssems not possible (because > in acceptor class the sessions are created from calls to a locally defined > SessionFactory variable). > > > What i could try is deriving from ScreenLogFactory (say > MyScreenLogFactory), override in that class some create() method(s) to > create not a ScreenLog but a derivation (say MyScreenLog) of it and in that > derived class override onOutgoing(). But then I must search in the message > string for subsstrings like 35=X which is a waste of time since in > FIX::Session send methods is available the MsgType. > > Also some periodically running script to truncate the log files is far > from optimal for obvious reasons. > > > I am perhaps missing something simple because I cannot imagine that > writing each 35=X to log file is acceptable for other users of QF (for us > it is really a show stopper, log files get toooo big). > > > Thanks for reading and for any help, > Gunnar > > > > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |