Re: [Quickfix-developers] Enabling Quick FIX Log (FileLogPath)
Brought to you by:
orenmnero
From: Vipula <vi...@gm...> - 2010-01-26 09:27:15
|
Hi Ned, It worked. It was the way I had initialized the SocketInitiator. I had been passing ScreenLogFactory which sent the messages to the console rather than to the disk log. Thanks for directing me to the right direction. Many Thanks Vipula 2010/1/26 <Ned...@ao...> > Hey Vipula, > > I don't know if I can be of much help, but I did look at an application > from a couple of years ago. In it there was an include for a filelog and > some code which instantiates a logging method; however I don't know if this > is in regard to the QuickFix logging or if I needed it to do my own logging. > Sorry I just can't remember. > > Regardless I've included a couple of lines of code below and also attached > the particular source file where these lines of code were pasted from. > > I hope this helps. > > Good luck > > Ned > > #include "QuickFix/FileLog.h" > > BOOL CTestDlg::DoConnect() > { > // Make a connection > > try > { > std::string config = RegistryGetString(m_regsection,"Configpath"); > m_application.m_testdlg = this; > > FIX::SessionSettings settings( config ); > FIX::FileStoreFactory storeFactory( settings ); > FIX::FileLogFactory logFactory( settings ); > > m_initiator = new FIX::SocketInitiator( m_application, > storeFactory, settings, logFactory ); > > // set timer to poll connection > SetTimer(TIMER_ID_POLL_CONNECTION, 500, NULL); > > } > catch ( std::exception & e ) > { > CString errormsg = e.what(); > LogErrText(&errormsg); > m_connected = FALSE; > BrokenChain(); > return FALSE; > } > > m_connected = TRUE; > WholeChain(); > return TRUE; > } > > In a message dated 1/25/2010 12:12:22 P.M. Eastern Standard Time, > vi...@gm... writes: > > Hi Ned, > There is a sample config file on the quick fix site but couldn't locate any > in the samples folder. > > Thanks > Vipula > > 2010/1/25 <ned...@ao...> > >> Hello Vipula, >> >> It's been a while, I can't remember but you may want to look at the >> configuration files from the sample applications that come with the download >> from the website. >> >> http://www.quickfixengine.org/quickfix/doc/html/examples.html >> >> Hope this helps. >> >> Good luck >> >> Ned >> >> >> >> >> >> >> -----Original Message----- >> From: Vipula <vi...@gm...> >> To: qui...@li... < >> qui...@li...> >> Sent: Mon, Jan 25, 2010 6:34 am >> Subject: [Quickfix-developers] Enabling Quick FIX Log (FileLogPath) >> >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> Hi, >> My apologies if this was asked before in the forum but I couldn't find it >> when searched. >> >> I have specified a valid directory with write access in the config file >> but the FIX client doesn't generate any logs. Do I need to explicitly enable >> logging ? >> >> >> [DEFAULT] >> ConnectionType=initiator >> ReconnectInterval=10 >> HeartBtInt=10 >> FileStorePath=C:\QFIX\filestorepath >> StartTime=00:00:01 >> EndTime=23:00:00 >> ResetOnLogon=N >> UseDataDictionary=N >> SocketConnectHost=server >> SocketConnectPort=8080 >> #ReconnectInterval=10 >> *FileLogPath=C:\QFIX\FileLogPath* >> >> [SESSION] >> BeginString=FIX.4.2 >> SenderCompID=VII >> TargetCompID=VIA >> DataDictionary=C:\QFIX\filestorepath\FIX.4.2.xml >> >> >> Many Thanks. >> Vipula >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies.http://p.sf.net/sfu/rsaconf-dev2dev >> >> _______________________________________________ >> Quickfix-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/quickfix-developers >> >> > |