Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95429 invoked from network); 28 Jun 2011 22:37:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2011 22:37:20 -0000 Authentication-Results: pb1.pair.com header.from=arraypad@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arraypad@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: arraypad@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:62839] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/0A-43855-E975A0E4 for ; Tue, 28 Jun 2011 18:37:19 -0400 Received: by vxi39 with SMTP id 39so560835vxi.29 for ; Tue, 28 Jun 2011 15:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=PjATSJplMTeCpZ65nW2WKovOiAC1G30tIJfwCHhs/1o=; b=pJaf0OADolojvztKfp3lJuQj+iLvJCooxErUeYCMFhEAr8LQ7w30P+yKCwCBW02H0d 6St7Pkx4bHcWX8gSAnTDDOcaUyQV602cvaRF5zxIsS/Mhy0BOSuzJRdH7c7NiCy3u0xN Xi4V9okLeqCfBVjP+1WdhwFHAKKCKh1YY++F4= MIME-Version: 1.0 Received: by 10.52.97.130 with SMTP id ea2mr108698vdb.268.1309300635404; Tue, 28 Jun 2011 15:37:15 -0700 (PDT) Received: by 10.52.107.103 with HTTP; Tue, 28 Jun 2011 15:37:15 -0700 (PDT) Date: Tue, 28 Jun 2011 23:37:15 +0100 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: [PATCH] Friendly log messages for CLI server From: arraypad@gmail.com (Arpad Ray) 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