Re: [Quickfix-developers] Logging messages conditionally
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2006-05-15 16:33:34
|
On 15 May 2006 17:45:19 +0200, sta...@mu... > I'd like to _not_ log certain messages to the messages_log table. > Specifically, market data information is not important enough to > warrant the required storage space, and I would like not to store sent > messages in the log. > > Is there an easy way to do this? You could derive your own Log class from whichever Log you're currently using and have it do nothing when it sees the message types you want to ignore in the onIncoming/onOutgoing methods. For more interesting messages, call the base class method. You'll need to do a string search (e.g. for "\00135=3D<X>\001") since the Logs are passed strings, not Message objects. --=20 Caleb Epstein caleb dot epstein at gmail dot com |