Hello Ceki,<br><br>Thanks for your answer.<br><br>But in this way will logback create one FileAppender every time I write something in the log?Can&#39;t this be a performance trouble?<br><br><br><br><div class="gmail_quote">
On Mon, May 3, 2010 at 9:27 AM, Ceki Gülcü <span dir="ltr">&lt;<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Luciano,<br>
<br>
You can&#39;t set the 30 minute threshold. However, you can force<br>
immediate removal of nested FileAppender via SiftingAppender&#39;s<br>
tracker.  Here is the code:<br>
<br>
  SiftingAppende siftingAppender = ...<br>
  AppenderTracer tracker = siftingAppender.getAppenderTracker();<br>
  tracker.stopAndRemoveNow(aKey);<br>
<br>
where &#39;aKey&#39; is the discriminator value used for the nested FileAppender.<br>
<br>
HTH,<div><div></div><div class="h5"><br>
<br>
On 03/05/2010 2:16 PM, Luciano Molinari wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi guys,<br>
<br>
I read the SiftingAppender&#39;s documentation and saw the following line:<br>
&quot;...<br>
Appenders unused for 30 minutes will be automatically closed and discarded.<br>
...&quot;<br>
<br>
My question is if i can confiugure this time?<br>
<br>
I want to use SiftingAppender to create one file per &quot;request&quot;, but one<br>
request can take some minutes to get finished and the whole system<br>
writes stuff about one particular request. It&#39;s such a trace log. As I<br>
can have lots of requests, i&#39;m afraid of get a TooManyOpenFiles<br>
IOException during this 30 minutes interval. Does this fear proceed?<br>
<br>
Thanks and sorry for the english.<br>
--<br>
Luciano Davoglio Molinari<br>
<br>
<br>
</blockquote></div></div>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Luciano Davoglio Molinari<br>