Re: [Quickfix-developers] Trading Client help
Brought to you by:
orenmnero
From: <ned...@ao...> - 2008-08-31 01:50:59
|
In case some of you were interested. Thanks Ned I would add the following to the response you received on this question. Let's assume you want to use the QuickFix log and have it log to a file: ? 1) Use the FileLogFactory as in the following: ? FIX::SessionSettings settings ( config ); FIX::FileLogFactory logFactory ( settings ); ? initiator = FIX::SocketInitiator(application, storeFactory, settings, logFactory); ? 2) Set your configuration file as in the following: ? FileLogPath=log ? The FileLogPath allows you to specify the path to the directory?that the log files will be in. In the above example, the name of the directory will be "log" and since there was no path specified (i.e. c:\mylocation\log), the location of the "log" directory will default to the start in directory I believe. ? I hope this helps Ned ? ? In a message dated 8/29/2008 7:16:59 A.M. Eastern Daylight Time, der...@gm... writes: > 5) where do i get the log. > As you can see, the tradeclient example uses ScreenLogFactory which create ScreenLog object. You can either redirect the output to a file, change the std::cout in ScreenLog, or write your own Log class. -----Original Message----- From: Derek <der...@go...> To: Ned...@ao... Sent: Sat, 30 Aug 2008 9:20 am Subject: Re: [Quickfix-developers] Trading Client help Hi Ned, Totally agree with your advice. Actually I'm not the person starting this thread. Probably you should reply to the whole email list to let others know. Could you please try to answer other questions as well? Thanks, Derek On Fri, Aug 29, 2008 at 2:34 PM, <Ned...@ao...> wrote: I would add the following to the response you received on this question. Let's assume you want to use the QuickFix log and have it log to a file: ? 1) Use the FileLogFactory as in the following: ? FIX::SessionSettings settings ( config ); FIX::FileLogFactory logFactory ( settings ); ? initiator = FIX::SocketInitiator(application, storeFactory, settings, logFactory); ? 2) Set your configuration file as in the following: ? FileLogPath=log ? The FileLogPath allows you to specify the path to the directory?that the log files will be in. In the above example, the name of the directory will be "log" and since there was no path specified (i.e. c:\mylocation\log), the location of the "log" directory will default to the start in directory I believe. ? I hope this helps Ned ? ? In a message dated 8/29/2008 7:16:59 A.M. Eastern Daylight Time, der...@gm... writes: > 5) where do i get the log. > As you can see, the tradeclient example uses ScreenLogFactory which create ScreenLog object. You can either redirect the output to a file, change the std::cout in ScreenLog, or write your own Log class. It's only a deal if it's where you want to go. Find your travel deal here. |