Colors in stderr log output
Bug #537700 reported by
wouter bolsterlee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Fix Released
|
Wishlist
|
wouter bolsterlee |
Bug Description
It would be pretty nifty if the default log handler could detect that PHP is running on a TTY (i.e. in a terminal with the output not redirected), and include ANSI color escape sequences when outputting log messages.
It's not too hard to include the escape sequences, as can be shown in the way PHPUnit does it:
http://
To post a comment you must log in.
The posix_isatty() seems useful to detect an interactive terminal session.