Req #26934 [Com]: error logging should log url for each page
| From: | moreeasy at gmail dot com | Date: | Wed, 24 Oct 2012 09:16:43 +0000 |
| Subject: | Req #26934 [Com]: error logging should log url for each page | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174263@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=26934&edit=1
ID: 26934
Comment by: moreeasy at gmail dot com
Reported by: Xuefer at 21cn dot com
Summary: error logging should log url for each page
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: *
PHP Version: 5CVS-2004-01-16 (dev)
Block user comment: N
Private report: N
New Comment:
I've found useful using register_shutdown_function() at the start of my scripts
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
print_r($error);
}
Previous Comments:
------------------------------------------------------------------------
[2007-09-27 05:30:26] jbyers at gmail dot com
This would be tremendously useful for debugging issues on high-traffic sites. Just the timestamp
isn't sufficient when there are high numbers of requests for that second.
------------------------------------------------------------------------
[2004-01-16 08:49:09] Xuefer at 21cn dot com
Description:
------------
don't know if this feature is request before(i searched, not found)
there're many times error show in my log files
1.
[16-Jan-2004 21:38:42] PHP Warning: Unknown(): A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0
2.
[16-Jan-2004 21:38:47] PHP Fatal error: Maximum execution time of 30 seconds exceeded in
/path/to/file.inc.php on line 113
but i don't know which request url cause the above error
there're too many pages include file /path/to/file.inc.php
what a hard life~
please add init setting:
error_log_request_url (boolean) default: true
[16-Jan-2004 21:38:42] PHP REQUEST: GET www.domain.com/abc.php
[16-Jan-2004 21:38:42] PHP Warning: etc etc..
[16-Jan-2004 21:38:43] PHP Fatal error: etc etc..
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=26934&edit=1