RE:[PHP] write a custom file wrapper or use error_log
| From: | Andy B | Date: | Fri, 26 Mar 2004 23:13:02 +0000 |
| Subject: | RE:[PHP] write a custom file wrapper or use error_log | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181596@lists.php.net to get a copy of this message | ||
"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??