I'm writting a program that forks 4 processes (in Linux). I want all of these processes to log all the work in the same file (ordered by date).
Is there a Perl module to do so?
If not, I think locking the file is one possibility, but in that case, have I to open+lock+write+close the file at every record to log? or there's a way to maintain opened the file on the 4 processes and only lock to make the write operation.