<p>All file based loggers can split their content into multiple files when the number of recorded events surpasses a given threshold. </p>
<p>It should be quite simple to modify this to be able to pause logging and resume to a new file when unpaused.</p>
<p>sent on the move</p>
<p>On 18 Dec 2011 18:02, &quot;Mark Proctor&quot; &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don&#39;t believe that is currently possible.<br>
<br>
Would make a good project for you to work on. Maybe you should add a<br>
start() and stop() method to the logger. However also make sure that the<br>
resulting fragmented log can be read and used - you may find that it&#39;s<br>
effectively corrupted, due to missing references, if you only dump part<br>
of it.<br>
<br>
Mark<br>
On 16/12/2011 15:29, jkrupka wrote:<br>
&gt; Am I totally missing something or is there not a way to stop logging of a<br>
&gt; stateful ks once you start doing so via the WorkingMemoryFileLogger (at<br>
&gt; least in Drools 5.2)?<br>
&gt;<br>
&gt; The Event Listeners that get registered when the file logger get created<br>
&gt; don&#39;t seem to ever be unregistered, and calling classes don&#39;t even have the<br>
&gt; visibility into the internals of the file logger in order to do so<br>
&gt; themselves.<br>
&gt;<br>
&gt; The use case for this is if you have a long running stateful session and you<br>
&gt; want to turn on logging just for a short period of time to collect some<br>
&gt; information, then turn logging off again.  The only way I know of doing this<br>
&gt; currently is to reload the whole session.<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://drools.46999.n3.nabble.com/WorkingMemoryFileLogger-question-tp3591898p3591898.html" target="_blank">http://drools.46999.n3.nabble.com/WorkingMemoryFileLogger-question-tp3591898p3591898.html</a><br>

&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>