Req #55109 [Com]: Friendly log messages

From: Date: Sat, 02 Jul 2011 15:35:57 +0000
Subject: Req #55109 [Com]: Friendly log messages
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161493@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55109&edit=1

 ID:                 55109
 Comment by:         arraypad at gmail dot com
 Reported by:        arpad@php.net
 Summary:            Friendly log messages
 Status:             Open
 Type:               Feature/Change Request
 Package:            Built-in web server
 Operating System:   N/A
 PHP Version:        trunk-SVN-2011-07-02 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#161493) next »