Re: [PATCH] Friendly log messages for CLI server

From: Date: Wed, 29 Jun 2011 11:24:54 +0000
Subject: Re: [PATCH] Friendly log messages for CLI server
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-53652@lists.php.net to get a copy of this message
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 <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 > > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#53652) next »