|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Having several processes share a logfileby flexvault (Vicar) |
| on Jan 03, 2013 at 12:18 UTC ( #1011446=note: print w/ replies, xml ) | Need Help?? |
|
Hello ibm1620, As was already mentioned, I use the *nix 'syslog' in production. But since you're in development mode at the present time, I suggest you use a unique log file for each 'fork'ed child.
This allows you to see what logs are generated for the production environment, and also allows you to have very detailed debugging information during development. Once code is working correctly, you can make the test for a higher number and eliminate unneeded data from the child logs. I open the 'syslog' before forking the children, and then open the debugging logs in the children. The '$$' is the unique process ID of the child. Hope this helps and that I typed everything correctly :-) Good Luck...Ed "Well done is better than well said." - Benjamin Franklin
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||