See http://bugs.slimdevices.com/show_bug.cgi?id=5691 for details and a
proposed patch.

The original patch to allow the logfile to pipe to a process was to
allow for the use of a log rotating process like 'multilog'
(http://cr.yp.to/daemontools/multilog.html). See
http://forums.slimdevices.com/showthread.php?t=1666 for details.

I had a brief look at Log::Dispatch::FileRotate, but the 'Log4Perl FAQ'
(http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#923b3)
says:
> 
> Luckily, Mark Pfeiffer's Log::Dispatch::FileRotate appender works well
> with Log::Log4perl to rotate your logfiles in a variety of ways.
> 
> Note, however, that having the application deal with rotating a log
> file is not cheap. Among other things, it requires locking the log file
> with every write to avoid race conditions. There are good reasons to use
> external rotators like newsyslog instead
> 

The Log4Perl FAQ talks about using 'newsyslog'
(http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#2d0d0)
but the appender needs some additional settings because newsyslog does
not operate transparently; it will move the log file away to archive it
as it rotates to the new log file!

Thus I find the approach presented by multilog preferable because it
provides a good means to achieve log rotation in a light weight and
transparent way.


-- 
quietdragon
------------------------------------------------------------------------
quietdragon's Profile: http://forums.slimdevices.com/member.php?userid=10412
View this thread: http://forums.slimdevices.com/showthread.php?t=36304

_______________________________________________
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to