Re: [Quickfix-users] Re moving logging quickfix J
Brought to you by:
orenmnero
From: nickcs <nic...@cr...> - 2010-03-31 15:47:40
|
Don't worry manages to get it going. Found my log4j file wasn't being picked up. Once it was I got rid of the noise using: <logger name="quickfix.mina.message"> <level value="info" /> </logger> Thanks for help, Nick.. Grant Birchmeier wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Please attach your whole xml config file. > > On Wed, Mar 31, 2010 at 8:59 AM, nickcs <nic...@cr...> > wrote: >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> >> >> I had this in my log4j.xml: >> >> <logger name="quickfix.SessionSettings"> >> <level value="info" /> >> </logger> >> >> and tried: >> >> <logger name="quickfixj"> >> <level value="info" /> >> </logger> >> >> I changes the code to be: >> >> SessionSettings settings = new >> SessionSettings(_fixCfgProperties.getInputStream()); >> MessageStoreFactory storeFactory = new FileStoreFactory(settings); >> LogFactory logFactory = new SLF4JLogFactory(settings); >> MessageFactory messageFactory = new DefaultMessageFactory(); >> Initiator initiator = new SocketInitiator(this, storeFactory,settings, >> logFactory, messageFactory); >> setInitiator(initiator); >> _dialect = new DefaultDialect(); >> startSession(); >> >> Cheers >> >> >> >> Grant Birchmeier wrote: >>> >>> QuickFIX Documentation: >>> http://www.quickfixengine.org/quickfix/doc/html/index.html >>> QuickFIX Support: http://www.quickfixengine.org/services.html >>> >>> You mean you never got the file working, or you were unsuccessful in >>> modifying it? >>> >>> If the latter, attach it and I'll have a look. >>> >>> -Grant >>> >>> On Wed, Mar 31, 2010 at 8:08 AM, nickcs >>> <nic...@cr...> >>> wrote: >>>> QuickFIX Documentation: >>>> http://www.quickfixengine.org/quickfix/doc/html/index.html >>>> QuickFIX Support: http://www.quickfixengine.org/services.html >>>> >>>> >>>> Yeah I tried this in the past with log4j file, but could not get the >>>> logger >>>> name to match so the level never kicked in. I guess I need to see a >>>> working >>>> example. >>>> >>>> Nick.. >>>> >>>> >>>> Grant Birchmeier wrote: >>>>> >>>>> QuickFIX Documentation: >>>>> http://www.quickfixengine.org/quickfix/doc/html/index.html >>>>> QuickFIX Support: http://www.quickfixengine.org/services.html >>>>> >>>>> You should ask QuickFIX/J questions on the QuickFIX/J mailing list: >>>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>>> >>>>> You should have a log4j config file of some sort, and in there you >>>>> need to change to a 'higher' log level. Currently it's 'debug', you >>>>> probably want 'info' or 'warn'. >>>>> >>>>> If you don't have a log4j config file, I believe your QF/J app will >>>>> print some kind of warning message and go with some defaults. In that >>>>> case, you should create a log4j config file. >>>>> >>>>> -Grant >>>>> >>>>> On Wed, Mar 31, 2010 at 2:12 AM, nickcs >>>>> <nic...@cr...> >>>>> wrote: >>>>>> QuickFIX Documentation: >>>>>> http://www.quickfixengine.org/quickfix/doc/html/index.html >>>>>> QuickFIX Support: http://www.quickfixengine.org/services.html >>>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> I am getting a lot of these debug messages from the >>>>>> SocketConnectorIoProcessor >>>>>> >>>>>> 2010-03-25 09:59:09,849 DEBUG [SocketConnectorIoProcessor-0.0] >>>>>> quickfix.mina.message.FIXMessageDecoder detected header: >>>>>> >>>>>> Do you know the easiest way to turn these off. I have been playing >>>>>> around >>>>>> trying an SL4JLogFactory, but this made no difference. Here is how I >>>>>> start >>>>>> up: >>>>>> >>>>>> MessageStoreFactory storeFactory = new FileStoreFactory(settings); >>>>>> LogFactory logFactory = new LogFactory(settings); >>>>>> MessageFactory messageFactory = new DefaultMessageFactory(); >>>>>> Initiator initiator = new SocketInitiator(this, >>>>>> storeFactory,settings, >>>>>> logFactory, messageFactory); >>>>>> >>>>>> Any help would be great, >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Nick.. >>>>>> -- >>>>>> View this message in context: >>>>>> http://old.nabble.com/Removing-logging-quickfix-J-tp28027544p28027544.html >>>>>> Sent from the QuickFIX - User mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Download Intel® Parallel Studio Eval >>>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>>> proactively, and fine-tune applications for parallel performance. >>>>>> See why Intel Parallel Studio got high marks during beta. >>>>>> http://p.sf.net/sfu/intel-sw-dev >>>>>> _______________________________________________ >>>>>> Quickfix-users mailing list >>>>>> Qui...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/quickfix-users >>>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Download Intel® Parallel Studio Eval >>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>> proactively, and fine-tune applications for parallel performance. >>>>> See why Intel Parallel Studio got high marks during beta. >>>>> http://p.sf.net/sfu/intel-sw-dev >>>>> _______________________________________________ >>>>> Quickfix-users mailing list >>>>> Qui...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/quickfix-users >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/Removing-logging-quickfix-J-tp28027544p28095615.html >>>> Sent from the QuickFIX - User mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Download Intel® Parallel Studio Eval >>>> Try the new software tools for yourself. Speed compiling, find bugs >>>> proactively, and fine-tune applications for parallel performance. >>>> See why Intel Parallel Studio got high marks during beta. >>>> http://p.sf.net/sfu/intel-sw-dev >>>> _______________________________________________ >>>> Quickfix-users mailing list >>>> Qui...@li... >>>> https://lists.sourceforge.net/lists/listinfo/quickfix-users >>>> >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Quickfix-users mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfix-users >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Removing-logging-quickfix-J-tp28027544p28096299.html >> Sent from the QuickFIX - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Quickfix-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-users >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > -- View this message in context: http://old.nabble.com/Removing-logging-quickfix-J-tp28027544p28097826.html Sent from the QuickFIX - User mailing list archive at Nabble.com. |