Configuring /etc/syslog.conf to redirect PHP errors to a separate file
| From: | Michael Sims | Date: | Fri, 08 Mar 2002 14:13:02 +0000 |
| Subject: | Configuring /etc/syslog.conf to redirect PHP errors to a separate file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87765@lists.php.net to get a copy of this message | ||
I hope this isn't too obvious of a question, but I've been looking around for the past hour and can't seem to find an answer to this.
Currently I have set the "error_log = syslog" directive in my php.ini file (this is on a Redhat 7.2 machine running PHP 4.1.2, and the syslog deamon that comes with RH 7.2 (sysklogd-1.4.1-4)) and it's working fine, sending all PHP errors to /var/log/messages.
I'd love to be able to send any errors from PHP to a completely separate file, say something like /var/log/php_errors. Does anyone know of a way to do this? I gather it has to do with using /etc/syslog.conf to redirect messages from a particular facility to that file, but I have no idea which facility PHP uses. I tried grepping the source but it's a bit over my head so I didn't really know what to look for...
I'd be extremely grateful for any assistance...
---------------------------------------------------------------------
Michael Sims
mhsims at midsouth dot rr dot com
"The Web site you seek
Can not be located but
Countless more exist."
---------------------------------------------------------------------