Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53641 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97026 invoked from network); 28 Jun 2011 22:39:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2011 22:39:09 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:33808] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/5A-43855-C085A0E4 for ; Tue, 28 Jun 2011 18:39:09 -0400 Received: by gxk27 with SMTP id 27so306306gxk.29 for ; Tue, 28 Jun 2011 15:39:05 -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=kp6dfueDb2UhTnZWGIb3gqe6zonlW6UOOzowzCPyWVg=; b=guwbQFZjBbxVBzVTNEd7PNkCWyWPq4j81tHg4j4c1/GrekqpyeYEkUrS2FyNhxwN9V RaG0VcvyLc7zqakygmwmoWFWyu+Wwb6YiIPyqAc0IhkiqYCdcgfg21MoEtuHUNga0qKc HAXJTWUV33hS5hF6M1kW67YZrTqS0ouDSJJfI= MIME-Version: 1.0 Received: by 10.151.144.3 with SMTP id w3mr117044ybn.380.1309300745092; Tue, 28 Jun 2011 15:39:05 -0700 (PDT) Received: by 10.147.35.2 with HTTP; Tue, 28 Jun 2011 15:39:05 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Jun 2011 00:39:05 +0200 Message-ID: To: Arpad Ray Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server From: tyra3l@gmail.com (Ferenc Kovacs) 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 > > I would love to have this. :) Tyrael