From: Francis Cianfrocca Date: 2006-09-26T11:57:26+09:00 Subject: Re: mod_ruby or FastCGI multiple instances single file ------=_Part_49553_10705598.1159239443025 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/25/06, Frank Reiff wrote: > > Hi, > > > I want to log an event either to a log file or a database. Since this > would be executed for every download from my site I think the log file > route may be more appropriate (=faster). > > My problem: "How can I write (append) to the same log file from multiple > interpreter instances at least potentially simultaneously?" Another possibility: write a single-threaded server on a localhost UDP port and have each handler in the apache process fire-and-forget a packet to the UDP server for each log line. ------=_Part_49553_10705598.1159239443025--