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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [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: Fri Nov 01 01:01:28 2024 UTC