I can confirm that this is an issue on windows where the last modified timestamp does not get updated properly (while the outputstream is open). The size does change though, so checking for last modified + size should get you all the taily goodness.<br>
<br><div class="gmail_quote">On 8 July 2011 12:22, David Roussel <span dir="ltr">&lt;<a href="mailto:nabble@diroussel.xsmail.com">nabble@diroussel.xsmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#FFFFFF"><div>Doug,</div><div><br><div style="font-size: medium;">The file appender does a flush after every line, so I&#39;m not sure why this behaviour occurs. My theory is that the file is being written to just fine, but windows (you are on windows right?) doesn&#39;t notice the changes and does notify tail programs. Try a reloading he log file in a text editor and you&#39;ll see it updating fine. </div>
<div style="font-size: medium;"><br></div><div style="font-size: medium;">David</div><div><div></div><div class="h5"><div style="font-size: medium;"><br></div>On 5 Jul 2011, at 21:10, &quot;Beyer, Doug&quot; &lt;<a href="mailto:doug.beyer@troppussoftware.com" target="_blank">doug.beyer@troppussoftware.com</a>&gt; wrote:<br>
<br></div></div></div><div><div></div><div class="h5"><div></div><blockquote type="cite"><div><div><p class="MsoNormal">In a very simple intro-style prototype using logback, I’ve got a rolling file appender logging correctly to a file.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">However, I don’t see the log lines immediately; however, they do show up when I close my java app. This means things are getting buffered.<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">But I can’t find something like Logger.flush() or any flush method as a work my way back up the inheritance tree.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
How do I ensure immediate flushing?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks.<u></u><u></u></p></div></div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br>
<span>Logback-user mailing list</span><br><span><a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a></span><br><span><a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a></span><br>
</div></blockquote></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">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>
<br></blockquote></div><br>