Hi mongrel-herders,<br><br>I'm just wondering what fellow railsers use to rotate their logs in an orderly fashion?&nbsp; I'd like to do something lightweight, i.e. (1) rename the logfile (2, optional) create a new empty logfile and (3) send a signal to each mongrel in the cluster and have them understand it's time to reopen their log file handles.&nbsp; This is what I do with apache and nginx and loads of other apps.
<br><br>Although the question is simple as stated, let me elaborate a little to avoid having the discussion going the wrong way (rein it in, as it were):<br><br>1. I'm really only concerned about production.log, since that is the big file.&nbsp; A solution that lets me rotate 
mongrel.log too is fine, but not necessary.<br><br>2. I know I can send a SIGUSR2 to each mongrel (or do a mongrel_cluster restart) to restart mongrel, but I'm running on a low-end machine which takes no less than 30 seconds to start rails, so I'd rather avoid the overhead.&nbsp; And even if it didn't, I think most of us agree that there's no real point in stopping out app even for a second just to reopen a file handle.
<br><br>3. I realise that mongrel isn't rails-bound, so it might not be mongrel's responsibility to make rails switch log files.&nbsp; In that case, please point me in another direction and I'll see what I find.<br><br>4. I see that I can send a SIGHUP to mongrel which might make it do the right thing, but the caveat &quot;(Internal reload) that might not work so well.&quot; is all but encouraging.
<br><br>Seeing as I've come this far, perhaps I should take a step back and ask: what do fellow mongrel_railsers use for logging?&nbsp; Logger? Log4R?&nbsp; Something else entirely?&nbsp; And what made you decide on the solution you use?
<br><br>Hope you haven't choked on my ramblings, and I look forward to your collective wisdom!<br><br>/David<br>