hi,

Good idea :)

However I would prefer to have that enabled optionally. CLI is widely
used for automated tasks with logs created using std* redirects. I
would not like to have the color escape codes in these logs.

Also please open a FR at bugs.php.net and attach the patch(es) to it, thanks!

Cheers,

On Wed, Jun 29, 2011 at 12:37 AM, Arpad Ray <array...@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
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to