No such thing as a small change | |
PerlMonks |
How to log from multiple threads into one logfile?by freddo411 (Chaplain) |
on Jul 13, 2010 at 00:25 UTC ( [id://849134]=perlquestion: print w/replies, xml ) | Need Help?? |
freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I'm looking for a reasonable solution to the following (Reasonable is defined as: minimized additional coding, minimized additional modules). I have several simultaneous threads, and I'd like to log messages from each into the same log file. There is one parent thread (long lived) and a number of short lived children. I'm already using Log4perl, if that helps. The work of the threads is otherwise independent, so I am not already communicating with signals or IPC. Thanks in advance. -------------------------------------
Back to
Seekers of Perl Wisdom
|
|