<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">In my opinion, you should split this up into two separate QuickFix.IApplication classes (within a single app is still ok), each with its own config file. Each will log (or not log) as separately configured, and each only implements the OnMessage callbacks that it uses.<br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default"><font color="#000000">I'm just now realizing that it's been a *long* time since I've written a multiple-initiator app, and I don't think it was even with this particular QF port. But I think I'm advising you correctly.</font><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 9, 2021 at 11:31 AM <<a href="mailto:alancloughley@hotmail.com">alancloughley@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB"><div class="gmail-m_8980983532824726754WordSection1"><p class="MsoNormal"><span>Hi Grant,<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>No I was just running them both from one initiator. The cfg file has 2 sessions on it so I guess the initiator runs two initiations? At the OnCreate() stage I am initiating 2 separate sessionID’s based on the settings SessionQualifier, so I would have a _sessionIDTrader and _sessionIDData. It works fine and I get two separate log files for each session type(trader and data). I just wanted to turn the data logs off completely and let the trader session keep on logging. Is there any way I can manage that without starting a separate initiator or is that the only way to do it?<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>If I use a 2<sup>nd</sup> initiator would I also have to use 2 separate settings files, one for each initiator?<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Thanks<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>A<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>> <b>On Behalf Of </b>Grant Birchmeier<br><b>Sent:</b> 09 February 2021 17:12<br><b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br><b>Subject:</b> Re: {{Quickfixn}} Logging settings<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal"><span style="font-size:12pt;color:black">You're creating one Initiator for each session, right?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:12pt;color:black">In the data-feed Initiator, change the FileLogFactory to a NullLogFactory. (This factory will ignore the FileLogPath config setting.)<u></u><u></u></span></p></div></div></div><p class="MsoNormal"><br><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(29,28,29);background:white">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</span><u></u><u></u></p></div></div>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span>