Mike Schilli wrote:
> I see -- the recommended ways of synchronizing access to an appender are
> listed in the Log4perl FAQ:
> 
>     http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804

Something I learned recently that's apropos that I've been meaning to
mention: on Linux, you don't have to worry about interleaving messages
when writing to the same file as long as the messages themselves are
smaller than PIPE_BUF, which on my FC5 machine here is defined as 4096
bytes:

$ grep -r PIPE_BUF /usr/include/
/usr/include/linux/limits.h:#define PIPE_BUF 4096
        /* # bytes in atomic write to a pipe */



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to