http://www.perlmonks.org?node_id=1011373


in reply to Having several processes share a logfile

This may be of interest; it shows you how to set up an appender in Log::Log4Perl so that you get atomic writes.