Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96718 invoked from network); 30 Jun 2011 20:08:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2011 20:08:20 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.121 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.121 rcsinet10.oracle.com Received: from [148.87.113.121] ([148.87.113.121:32229] helo=rcsinet10.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/00-30696-2B7DC0E4 for ; Thu, 30 Jun 2011 16:08:19 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.4/Switch-3.4.2) with ESMTP id p5UK8CTK017781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 30 Jun 2011 20:08:14 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5UK8Bwk025397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Jun 2011 20:08:11 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5UK85Q6003345; Thu, 30 Jun 2011 15:08:05 -0500 Received: from [10.159.221.184] (/10.159.221.184) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 30 Jun 2011 13:08:05 -0700 Message-ID: <4E0CD79E.5080806@oracle.com> Date: Thu, 30 Jun 2011 13:07:58 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net CC: Lars Bo Rasmussen References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090204.4E0CD7AF.0041:SCFSTAT5015188,ss=1,re=-4.000,fgs=0 Subject: Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server From: christopher.jones@oracle.com (Christopher Jones) On 06/30/2011 12:04 PM, Hannes Magnusson wrote: > On Thu, Jun 30, 2011 at 20:14, Lars Bo Rasmussen wrote: >> Instead of adding it as a php ini option, please consider adding this as a >> parameter to the php-cli executable as this might be something you would >> want to enable/disable quickly per instance. This would also make the >> coloring output more attractive to use instead of having to edit the ini >> file every time or have a seperate ini file just for the purpose to enable >> or disable coloring > > Then you would be forced to always pass that option. > > If you want to enable it for one run you could do > php -dcli.color=0 foo.php > > No need to edit the ini. > > -Hannes > If we have to have colouring at all, then I'd prefer a php.ini option to a command line option. The default should be coded Off, but can be set On in the php.ini-development file we ship. Preferably the parameter would be non-binary. This allows someone to extend it, including adding alternative colour schemes for the red-green impaired person: cli.webserver_log = COLOR_NONE cli.webserver_log = COLOR_REDGREEN ; uses red & green cli.webserver_log = COLOR_YELLOWBLUE ; uses yellow & blue cli.webserver_log = COLOR_REDGREEN | ERRORS_ONLY ; you get the idea Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/