[Quickfix-developers] SocketInitiator Constructor Weirdness..
Brought to you by:
orenmnero
|
From: Mark R. <mr...@pr...> - 2006-08-23 13:51:54
|
Hi all, =20 I'm rather new to QuickFix so please excuse me if I have overlooked something... =20 Version - 1.12.1 Language - C++ Platform - Windows XP Compiler MS Visual Studio 7 =20 If I change the tradeclient example to use a FileLog rather than a ScreenLog, it throws an exception saying that the FileLogPath is not defined... ... Application application; FIX::FileStoreFactory storeFactory( settings ); FIX::FileLogFactory logFactory( settings ); FIX::SocketInitiator initiator( application, storeFactory, settings, logFactory ); ... =20 The problem is that the Initiator constructor calls "logFactory.create()" (Initiator.cpp, line 57)... this version of create() looks for the FILE_LOG_PATH setting in the default settings, not any particular session and if it isn't defined it throws an exception. =20 The only way I can see to get this to work is to define FileLogPath in the default session settings... obviously though, this isn't ideal if you want a different log file for each session... which I do! =20 Any ideas? =20 Regards, Mark =20 |