Just an FYI I am running this on Gentoo with PHP 5.3.x

 

I have PEAR installed, I am wondering if there are any other PHP
packages or configurations required to make this be able to write files.

 

From: Ivan Habunek [mailto:[email protected]] 
Sent: Tuesday, August 16, 2011 9:34 AM
To: Log4PHP User
Subject: Re: Multiple servers writing to the same file

 

That should work fine because the file is locked each time before
writing to it (exclusive lock).

I haven't tested this on a NAS setup, but I have tested it by having two
processes log continuously to the same log file on a local disk and this
works ok. 

Let us know if you run into any problems.

Regards,
Ivan



On 16 August 2011 15:26, Michael Sole <[email protected]> wrote:

If I were to have a NAS and mount a folder on 2 different servers to a
folder on the NAS could I use log4php to write to the same file from
both servers?

 

The goal is to have 1 log file from 2 servers in a load balanced array.

 

_______________

Michael F. Sole
[email protected]

Office: 732.632.8801, ext. 261 <tel:732.632.8801%2C%20ext.%20261> 
Mobile: 516.592.3683

Fax: 732.632.3599

Gold Mobile
www.gold-mobile.com <http://www.gold-mobile.com/>   

Mobile Health Tech Group
www.mobilehealthtech.md <http://www.mobilehealthtech.md/> 

This e-mail and any files transmitted are intended solely for the use of
the individual or entity to whom they are addressed, and for the use of
Gold Mobile.  Any other use is strictly prohibited.

 

 

Reply via email to