Re: [PATCH] Friendly log messages for CLI server
| From: | Ferenc Kovacs | Date: | Tue, 28 Jun 2011 22:39:05 +0000 |
| Subject: | Re: [PATCH] Friendly log messages for CLI server | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53641@lists.php.net to get a copy of this message | ||
On Wed, Jun 29, 2011 at 12:37 AM, Arpad Ray <arraypad@gmail.com> wrote:
> Hi,
>
> This little patch makes the following changes to the CLI web server's
> console logging:
> - 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
>
> Here's an example:
> http://spellign.com/patches/cli-before.png
> http://spellign.com/patches/cli-after.png
>
> And the patch:
> http://spellign.com/patches/php-trunk-cli-server-messages.patch
>
> I'd appreciate any feedback.
>
> Regards,
>
> Arpad
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I would love to have this. :)
Tyrael