RE: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-21 Thread Thomas D.
Hi, Guillaume Rossolini wrote: > You needn't be concerned, as Zend_Log uses system-level > file locking.  And as you know, the OS is above apache ;) > That means that multiple simultaneous Zend_Log instances > do not immediately write or fail, they wait in a queue until > they manage to write or u

Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-21 Thread Guillaume Rossolini
On Sun, Mar 21, 2010 at 3:42 AM, howard chen wrote: > > > What I concern is potential loss of log due to locking. (Assume > multiple apache processes are running) > Hi, You needn't be concerned, as Zend_Log uses system-level file locking. And as you know, the OS is above apache ;) That means th

Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread howard chen
On Sun, Mar 21, 2010 at 8:13 AM, till wrote: > If performance is a concern, avoid doing logs (in production). :-) > > We are using Zend_Log+syslog (there's a writer for it) for all our > CLI-tools. No idea what kind of logging you are after. > > Till > What I concern is potential loss of log due

Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread till
On Sat, Mar 20, 2010 at 7:40 PM, howard chen wrote: > Hi, > > On Sun, Mar 21, 2010 at 12:49 AM, Matthew Weier O'Phinney > wrote: > >> It should be safe; it uses file locking internally to prevent issues >> with concurrent writers. >> >> -- > > > Thanks for your reply. > > What if a file is being

Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread howard chen
Hi, On Sun, Mar 21, 2010 at 12:49 AM, Matthew Weier O'Phinney wrote: > It should be safe; it uses file locking internally to prevent issues > with concurrent writers. > > -- Thanks for your reply. What if a file is being locked by an apache process? Exception anyway or will wait? I want log

Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread Matthew Weier O'Phinney
-- howard chen wrote (on Sunday, 21 March 2010, 12:33 AM +0800): > Just wonder if the Zend_Log when writing to local file, is it reliable > when multiple user writing to the same file? > > What will happen if other is writing? It should be safe; it uses file locking internally to prevent issues