[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??



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 additional PHP code?

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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...

i know its probably way too much for an errorlog or log function to do by
itself but just have log() call the different functions if its needed??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php