From: Kevin M. G. <cp...@go...> - 2007-11-06 16:29:48
|
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 */ |