Here is an idea that might help.
Create multiple sessions in your config file that start and stop the
sessions each day.
[SESSION]
BeginString=FIX.4.2
SenderCompID=XXXXX
TargetCompID=XXXX
UseDataDictionary=Y
DataDictionary=FIX42.xml
SessionQualifier=MONDAY
StartDay=su
StartTime=21:25:00
EndTime=21:00:00
EndDay=mo
[SESSION]
BeginString=FIX.4.2
SenderCompID=XXXXX
TargetCompID=XXXX
UseDataDictionary=Y
DataDictionary=FIX42.xml
SessionQualifier=TUESDAY
StartDay=mo
StartTime=21:25:00
EndTime=21:00:00
EndDay=tu
etc.
This will create daily log files that will not be locked/affect the current
running session
Create a scheduled task/job that compresses/archives the previous days files
- or do them all on a weekend.
Andrew Culross
Direct +1 (914) 220-8849
http://www.twofour.com/emaildisclaimer.aspx
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of Mark
Raynes
Sent: Wednesday, April 09, 2008 9:49 AM
To: Jeff
Cc: qui...@li...
Subject: Re: [Quickfix-developers] Message Logs Rotation
andPersistMessages..
No responses as yet. starting to lose hope!
_____
From: jhe...@gm... [mailto:jhe...@gm...] On Behalf Of Jeff
Sent: Wednesday, April 09, 2008 14:46
To: Mark Raynes
Cc: qui...@li...
Subject: Re: [Quickfix-developers] Message Logs Rotation and
PersistMessages..
On Mon, Apr 7, 2008 at 5:42 AM, Mark Raynes <mr...@pr...> wrote:
What would be the preferred way of rotating the FIX message logs in
QuickFIX? Currently we have a situation where the message logs are growing
indefinitely and the only way to rotate them is to bring down the
application. Is there a way of having QF open a new message log each
session? Or is there some signal I can send to the application that will
re-open the logs?
I'm about to start working this as well - rotating the logs so they don't
grow out of control.
Mark - did you figure anything out?
What are others doing?
Thanks,
Jeff
|