Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79682 invoked from network); 29 Jun 2011 11:07:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2011 11:07:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:58099] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/71-05351-D770B0E4 for ; Wed, 29 Jun 2011 07:07:42 -0400 Received: from [192.168.2.230] (ppp-93-104-44-213.dynamic.mnet-online.de [93.104.44.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id A4FE4743A6; Wed, 29 Jun 2011 13:07:38 +0200 (CEST) To: Derick Rethans Cc: =?ISO-8859-1?Q?J=E9r=F4me?= Loyet , Arpad Ray , internals@lists.php.net In-Reply-To: References: <1309303149.2331.119.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Wed, 29 Jun 2011 13:07:37 +0200 Message-ID: <1309345657.3741.21.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2011-06-29 at 11:45 +0100, Derick Rethans wrote: > That's why the patch first checks whether stdout is actually a tty, so > your log file will not have ansi control characters. While that check is not always the best/good thing. For instance if you're using script(1) to log a terminal session you will end up with a log file with control sequences. Script started on June 29, 2011 12:59:59 PM CEST $ cat test.c #include int main() { printf("%i\n", isatty(STDOUT_FILENO)); return 0; } $ gcc -otest test.c $ ./test 1 $ exit script done on June 29, 2011 01:02:11 PM CEST And then there are people using "strange" backgrounds or have trouble identifying specific colors - so I think it should be made optional. johannes