<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;">Not necessarily, the reload check could be done before the OFF check...<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Tom Leccese <tleccese@cybershift.com><br>To: logback users list <logback-user@qos.ch><br>Sent: Thursday, September 27, 2007 12:57:36 PM<br>Subject: [logback-user] RE: [logback-user] logback initialization "à la" Spring<br><br>
<style type="text/css">DIV {
MARGIN:0px;}
</style>
<div><span class="795205416-27092007"><font color="#0000ff" face="Arial" size="2">One
snafu, perhaps. If all your loggers in your current config are turned
OFF, then a message would never get generated, and it would never check to
see if the config file has changed.</font></span></div>
<blockquote>
<div class="OutlookMessageHeader" dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> logback-user-bounces@qos.ch
[mailto:logback-user-bounces@qos.ch]<b>On Behalf Of </b>Arthur
Blake<br><b>Sent:</b> Thursday, September 27, 2007 12:45 PM<br><b>To:</b>
logback users list<br><b>Subject:</b> Re: [logback-user] logback
initialization "à la" Spring<br><br></font></div>
<div style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">
<div style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">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-size: 12pt; font-family: times new roman,new york,times,serif;">-----
Original Message ----<br>From: Jorg Heymans
<jorg.heymans@gmail.com><br>To: logback users list
<logback-user@qos.ch><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>
<<a rel="nofollow" target="_blank" href="mailto:baroncelli@yahoo.com">baroncelli@yahoo.com</a>> 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 rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/tv/mail/tagline/falltv/evt=47093/*http://tv.yahoo.com/collections/3658%20">fall's
hot new shows</a> on Yahoo! TV. Watch previews, get listings, and more!
</blockquote>
<br>This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.</div><br></div></div><br>
<hr size=1>Fussy? Opinionated? Impossible to please? Perfect. <a href="http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.
</body></html>