Log not being recorded for quickfix c++ Session -
i running fix initiator , succesfully connecting acceptor. problem is, no log being recorded. .cfg application written below.
[default] connectiontype=initiator reconnectinterval=2 resetonlogon=y filestorepath=store filelogpath=logging starttime=00:00:00 endtime=00:00:00 usedatadictionary=y # standard config elements [session] # inherit connectiontype, reconnectinterval , sendercompid default beginstring=fix.4.4 sendercompid=init targetcompid=accept socketconnecthost=xxx socketconnectport=xxx heartbtint=30 datadictionary=fix44md.xml [session] beginstring=fix.4.4 sendercompid=init targetcompid=accept1 socketconnecthost=xxx socketconnectport=xxx heartbtint=30 datadictionary=fix44oms.xml
the excerpt code initiates connection written below:
std::string file = argv[ 1 ]; fix::sessionsettings settings( file ); application application; fix::filestorefactory storefactory( settings ); fix::screenlogfactory logfactory( settings ); fix::socketinitiator initiator( application, storefactory, settings, logfactory); initiator.start(); application.run(); initiator.stop();
i'm pretty sure problem isn't related writing permissions, running app administrator.
that's because you're using screenlogfactory
, which, name implies, logs screen (e.g. terminal).
change filelogfactory
, should in business.
Comments
Post a Comment