Re: [PATCH] Friendly log messages for CLI server

From: Date: Wed, 29 Jun 2011 11:07:37 +0000
Subject: Re: [PATCH] Friendly log messages for CLI server
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-53650@lists.php.net to get a copy of this message
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 <unistd.h> 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

« previous php.internals (#53650) next »