Discussion:
[Quickfix-developers] Message Logs Rotation and PersistMessages..
Mark Raynes
2008-04-07 09:42:58 UTC
Permalink
Hi,





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?



On another (although related) note, why is it when I set
PersistMessages=N, the messages are still persisted... have I
misunderstood this setting?





Regards,

Mark
Jeff
2008-04-09 13:45:30 UTC
Permalink
Post by Mark Raynes
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
Mark Raynes
2008-04-09 13:48:49 UTC
Permalink
No responses as yet... starting to lose hope!



________________________________

From: ***@gmail.com [mailto:***@gmail.com] On Behalf Of Jeff
Sent: Wednesday, April 09, 2008 14:46
To: Mark Raynes
Cc: quickfix-***@lists.sourceforge.net
Subject: Re: [Quickfix-developers] Message Logs Rotation and
PersistMessages..





On Mon, Apr 7, 2008 at 5:42 AM, Mark Raynes <***@progress.com>
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
o***@quickfixengine.org
2008-04-09 14:55:28 UTC
Permalink
<html><body>Right now you need to rotate them yourself and you do have to disconnect to do this.&nbsp; We will look at a way to support this within quickfix.<BR><BR> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid" webmail="1">-------- Original Message --------<BR>Subject: Re: [Quickfix-developers] Message Logs Rotation and<BR>PersistMessages..<BR>From: "Mark Raynes" &lt;***@progress.com&gt;<BR>Date: Wed, April 09, 2008 8:48 am<BR>To: "Jeff" &lt;jhedlund+***@gmail.com&gt;<BR>Cc: <a href="mailto:quickfix-***@lists.sourceforge.net">quickfix-***@lists.sourceforge.net</a><BR><BR>QuickFIX Documentation: <A href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank><a href="http://www.quickfixengine.org/quickfix/doc/html/index.html">http://www.quickfixengine.org/quickfix/doc/html/index.html</a></A><BR>QuickFIX Support: <A href="http://www.quickfixengine.org/services.html" target=_blank><a href="http://www.quickfixengine.org/services.html">http://www.quickfixengine.org/services.html</a></A><BR><BR>
<HR>

<STYLE>
#wmMessage v\:* {behavior:url(#default#VML);}
#wmMessage o\:* {behavior:url(#default#VML);}
#wmMessage w\:* {behavior:url(#default#VML);}
#wmMessage .shape {behavior:url(#default#VML);}

</STYLE>

<STYLE>
#wmMessage /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;}
#wmMessage /* Style Definitions */ p.MsoNormal, #wmMessage li.MsoNormal, #wmMessage div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}
#wmMessage a:link, #wmMessage span.MsoHyperlink {color:blue; text-decoration:underline;}
#wmMessage a:visited, #wmMessage span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;}
#wmMessage p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";}
#wmMessage span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;}
#wmMessage @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;}
#wmMessage div.Section1 {page:Section1;} </STYLE> <DIV class=Section1> <div><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">No responses as yet&hellip;&nbsp;&nbsp; starting to lose hope!<o:p></o:p></SPAN></FONT></div> <div><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></div> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <div><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a href="mailto:***@gmail.com">***@gmail.com</a> [<A onclick="Popup.composeWindow('pcompose.php?sendto=jhedlund%40gmail.com');; return false;" href="mailto:***@gmail.com" target=_blank><a href="mailto:***@gmail.com">mailto:***@gmail.com</a></A>] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Jeff<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, April 09, 2008 14:46<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Mark Raynes<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> <a href="mailto:quickfix-***@lists.sourceforge.net">quickfix-***@lists.sourceforge.net</a><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Quickfix-developers] Message Logs Rotation and PersistMessages..</SPAN></FONT><o:p></o:p></div></DIV> <div><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></div> <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV> <div><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">On Mon, Apr 7, 2008 at 5:42 AM, Mark Raynes &lt;<A onclick="Popup.composeWindow('pcompose.php?sendto=mraynes%40progress.com');; return false;" href="mailto:***@progress.com" target=_blank><a href="mailto:***@progress.com">***@progress.com</a></A>&gt; wrote:<o:p></o:p></SPAN></FONT></div>
<DIV vlink="purple" link="blue">
<DIV>
<div><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What would be the preferred way of rotating the FIX message logs in QuickFIX?&nbsp; &nbsp;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.&nbsp; Is there a way of having QF open a new message log each session?&nbsp; Or is there some signal I can send to the application that will re-open the logs?</SPAN></FONT><o:p></o:p></div></DIV></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR>I'm about to start working this as well - rotating the logs so they don't grow out of control.<BR><BR>Mark - did you figure anything out?&nbsp; <BR><BR>What are others doing?<BR><BR>Thanks,<BR>Jeff<BR><BR><o:p></o:p></SPAN></FONT></P></DIV></DIV></DIV>
<HR>
-------------------------------------------------------------------------<BR>This <a href="http://SF.net">SF.net</a> email is sponsored by the 2008 JavaOne(SM) Conference <BR>Don't miss this year's exciting event. There's still time to save $100. <BR>Use priority code J8TL2D2. <BR><A href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target=_blank><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a></A>
<HR>
_______________________________________________<BR>Quickfix-developers mailing list<BR><A onclick="Popup.composeWindow('pcompose.php?sendto=Quickfix-developers%40lists.sourceforge.net'); return false;" href="#Compose">Quickfix-developers<B></B>@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank><a href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers">https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a></A> </BLOCKQUOTE></body></html>
garima gangwar
2015-04-16 05:32:36 UTC
Permalink
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/
http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html
Right now you need to rotate them yourself and you do have to disconnect
to do this.  We will look at a way to support this within quickfix.--------
Original Message --------Subject: Re: [Quickfix-developers] Message Logs
Rotation andPersistMessages..From: "Mark Raynes" <mraynes-
j7Fd8dkzv11Wk0Htik3J/***@public.gmane.org>Date: Wed, April 09, 2008 8:48
amTo: "Jeff" <jhedlund+qf-***@public.gmane.org>Cc:
quickfix-developers-
5NWGOfrQmneRv+***@public.gmane.orgQuickFIX Documentation:
http://www.quickfixengine.org/quickfix/doc/html/index.htmlQuickFIX
Support: http://www.quickfixengine.org/services.html
#wmMessage v\:* {behavior:url(#default#VML);}
#wmMessage o\:* {behavior:url(#default#VML);}
#wmMessage w\:* {behavior:url(#default#VML);}
#wmMessage .shape {behavior:url(#default#VML);}
#wmMessage /* Font Definitions */ <at> font-face {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
#wmMessage /* Style Definitions */ p.MsoNormal, #wmMessage
li.MsoNormal, #wmMessage div.MsoNormal {margin:0cm; margin-
bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}
#wmMessage a:link, #wmMessage span.MsoHyperlink {color:blue; text-
decoration:underline;}
#wmMessage a:visited, #wmMessage span.MsoHyperlinkFollowed
{color:blue; text-decoration:underline;}
#wmMessage p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-
bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New
Roman";}
#wmMessage span.EmailStyle18 {mso-style-type:personal-reply; font-
family:Arial; color:navy;}
#wmMessage <at> page Section1 {size:612.0pt 792.0pt; margin:72.0pt
90.0pt 72.0pt 90.0pt;}
#wmMessage div.Section1 {page:Section1;}
No responses as yet…   starting to lose hope!
 
***@public.gmane.org] On Behalf Of JeffSent: Wednesday,
April 09, 2008 14:46To: Mark RaynesCc: quickfix-developers-
5NWGOfrQmneRv+***@public.gmane.orgSubject: Re: [Quickfix-
developers] Message Logs Rotation and PersistMessages..
 
 
On Mon, Apr 7, 2008 at 5:42 AM, Mark Raynes <mraynes-
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
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't
miss this year's exciting event. There's still time to save $100. Use
priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?
http://java.sun.com/javaone
_______________________________________________Quickfix-developers
mailing listQuickfix-developers <at>
lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/quickfix-
developers
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?
http://java.sun.com/javaone
_______________________________________________
Quickfix-developers mailing list
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Does anyone know how to configure quickfixj with log4j to roll over
messages.log????

Andrew Culross
2008-04-09 15:34:32 UTC
Permalink
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: quickfix-developers-***@lists.sourceforge.net
[mailto:quickfix-developers-***@lists.sourceforge.net] On Behalf Of Mark
Raynes
Sent: Wednesday, April 09, 2008 9:49 AM
To: Jeff
Cc: quickfix-***@lists.sourceforge.net
Subject: Re: [Quickfix-developers] Message Logs Rotation
andPersistMessages..



No responses as yet. starting to lose hope!




_____


From: ***@gmail.com [mailto:***@gmail.com] On Behalf Of Jeff
Sent: Wednesday, April 09, 2008 14:46
To: Mark Raynes
Cc: quickfix-***@lists.sourceforge.net
Subject: Re: [Quickfix-developers] Message Logs Rotation and
PersistMessages..





On Mon, Apr 7, 2008 at 5:42 AM, Mark Raynes <***@progress.com> 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
Loading...