php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17870 format of log to file should be change
Submitted: 2002-06-20 04:54 UTC Modified: 2002-06-20 07:00 UTC
From: xuefer at 21cn dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.1 OS: all
Private report: No CVE-ID: None
 [2002-06-20 04:54 UTC] xuefer at 21cn dot com
when log to file
we got only:

[20-Jun-2002 16:11:42] PHP Fatal error:  Call to undefined function:  foo() in /usr/htdocs/abc.php on line 10

time/reason/file/line

but not $PHP_SELF and $_SERVER['QUERY_STRING']
when we have many file included "abc.php"
we don't know which url to reproduce the error

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-20 04:55 UTC] xuefer at 21cn dot com
solution is: log more useful information for "log to file"
 [2002-06-20 05:50 UTC] yohgaki@php.net
You can define your own error handler to log whatever format you need.

 [2002-06-20 07:00 UTC] xuefer at 21cn dot com
the Fatal error will never be handled by user handler
do it ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC