<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">I've used automatic reloading in the past in log4j and it certainly can be a very nice and convenient feature--<br><br>There are various issues that come up in the complexity of implementing it -- normally it's done with a separate Thread that runs and wakes up every so often to check if the file timestamp on the config file has changed.<br><br>Thats a bit of a clunky and complex way to do it.<br><br>I have been mentally toying with an idea for a new way to accomplish this, without having to have a separate thread-- The check could be done at the point where each log message is generated-- system wide.<br><br>Since you already know the timestamp of the message generated, you could just compare that to the timestamp of the last time the
 log config file was reloaded-- and if a certain amount of time has elapsed since the last time the file was checked, you kick off the code that checks to see if the file time stamp has changed, and if so, reload it (that part could be done asynchronously as well so as not to slow down other threads writing out log messages)<br><br>It's simple, fast and it would have the very nice benefit of not having to have a separate Thread-- furthermore, you avoid the overhead of periodically checking the modification file stamp, over long periods when there is no log activity (such as idle periods when a server might not be getting any activity)<br><br>Has anyone thought of implementing it this way?<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jorg Heymans &lt;jorg.heymans@gmail.com&gt;<br>To: logback users list &lt;logback-user@qos.ch&gt;<br>Sent: Thursday, September 27, 2007
 10:23:07 AM<br>Subject: Re: [logback-user] logback initialization "à la" Spring<br><br>On 9/27/07, <b class="gmail_sendername">Davide Baroncelli</b> &lt;<a rel="nofollow" target="_blank" href="mailto:baroncelli@yahoo.com">baroncelli@yahoo.com</a>&gt; wrote:<div><span class="gmail_quote"></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
P.s.: let me express my disagreement for logback and sl4j not supporting<br>neither the FATAL logging level nor automatic reloading of config files.</blockquote><div><br></div></div>+1 for automatic reloading !<br><br>Jorg
<br>
</div><br></div></div><br>
      <hr size=1>Catch up on <a href="http://us.rd.yahoo.com/tv/mail/tagline/falltv/evt=47093/*http://tv.yahoo.com/collections/3658 
">fall's hot new shows</a> on Yahoo! TV.  Watch previews, get listings, and more!

</body></html>