|We don't bite newbies here... much|
Re: Having several processes share a logfileby flexvault (Monsignor)
|on Jan 03, 2013 at 12:18 UTC||Need Help??|
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 :-)
"Well done is better than well said." - Benjamin Franklin