in reply to Writing to one file from multiple processes

There are many log handlers on CPAN, I'm sure some of them will fit your needs.

If you want to do it manually it's probably good to set up a logging process that listens on a local socket, and all other process connect to that process. It can spawn a thread for each connection, assembles the logs in a queue and write it to a file.

  • Comment on Re: Writing to one file from multiple processes