Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53652 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85156 invoked from network); 29 Jun 2011 11:24:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2011 11:24:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:39870] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/92-05351-88B0B0E4 for ; Wed, 29 Jun 2011 07:24:57 -0400 Received: by gyb13 with SMTP id 13so160125gyb.29 for ; Wed, 29 Jun 2011 04:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QnMpv+dwPtDVuxhmCJKfa/8Bh9UtZak3qCcFAWtAkts=; b=sb5s2v1gsSaGcfVb6LVORV2Uhgz+N+DTHtG+SB3f5F7ESRAFvy8ThTqQDbhewYOvrH eg3C+MSayQNbbFQPoGwojyTybBnv3xOu8T1JV9VyOPNt46M/mcWU+ASFKzQAQUgTdGwl 0yOD+yj+Y3JlmfLyv8ZgfGR8G0WqtyK2i3zLw= MIME-Version: 1.0 Received: by 10.236.154.97 with SMTP id g61mr690629yhk.265.1309346694113; Wed, 29 Jun 2011 04:24:54 -0700 (PDT) Received: by 10.147.167.16 with HTTP; Wed, 29 Jun 2011 04:24:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Jun 2011 13:24:54 +0200 Message-ID: To: Arpad Ray Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server From: pierre.php@gmail.com (Pierre Joye) 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 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