[PHP] RE:[PHP] write a custom file wrapper or use error_log

2004-03-26 Thread Andy B
"Define "better"." 1. check the file size. if it is larger than a certain size then rename the current log and roll over to a new filename 2. if something fatal happens during normal program use shutdown the program/website section and display a page that says unavaliable or something of that sort

Re: [PHP] write a custom file wrapper or use error_log

2004-03-26 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > is it better overall to write a custom file > wrapper (write my own log functions) > or use the error_log/syslog that php already gives?? Define "better". Which one suits your needs? Obviously, if error_log does what you need it to do, then use it. Why write

[PHP] write a custom file wrapper or use error_log

2004-03-26 Thread Andy B
is it better overall to write a custom file wrapper (write my own log functions) or use the error_log/syslog that php already gives??