Req #55109 [Asn->Csd]: Friendly log messages
Edit report at https://bugs.php.net/bug.php?id=55109&edit=1
ID: 55109
Updated by: reeze@php.net
Reported by: arpad@php.net
Summary: Friendly log messages
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: Built-in web server
Operating System: N/A
PHP Version: trunk-SVN-2011-07-02 (SVN)
Assigned To: moriyoshi
Block user comment: N
Private report: N
New Comment:
already been implemented
Previous Comments:
------------------------------------------------------------------------
[2011-08-29 21:59:17] arpad@php.net
Automatic comment from SVN on behalf of arpad
Revision: http://svn.php.net/viewvc/?view=revision&revision=315748
Log: add friendly log messages (req #55109)
------------------------------------------------------------------------
[2011-07-19 13:47:29] moriyoshi@php.net
Automatic comment from SVN on behalf of moriyoshi
Revision: http://svn.php.net/viewvc/?view=revision&revision=313441
Log: - Print HTTP method as well in the log.
- Print response code also when the request is processed by a script.
- Those changes partly closes #55109.
------------------------------------------------------------------------
[2011-07-02 11:35:57] arraypad at gmail dot com
Added value of On to php.ini-development and php.ini-production, and changed the default value to
Off (so php -n -S ... doesn't use the colours.)
I haven't found a better way of checking the terminal, so I think this patch is ready.
------------------------------------------------------------------------
[2011-07-01 21:20:37] arraypad at gmail dot com
Discussion: http://marc.info/?l=php-internals&m=130930069207940&w=2
NB. Patch is not ready to be applied yet - still looking into means of excluding apparently
compatible (but not) terminals.
------------------------------------------------------------------------
[2011-07-01 21:13:50] arpad@php.net
Description:
------------
- Compacts messages to one line, so a 404 doesn't occupy three lines.
- Includes the response status code
- Colours messages according to their response code (success=green,
client error=yellow, server error=red)
- Appends the error message when there's a fatal PHP error
Test script:
---------------
...
Expected result:
----------------
http://spellign.com/patches/cli-after.png
Actual result:
--------------
http://spellign.com/patches/cli-before.png
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55109&edit=1
Thread (5 messages)