Re: [PATCH] Friendly log messages for CLI server
| From: | Hannes Magnusson | Date: | Thu, 30 Jun 2011 19:04:55 +0000 |
| Subject: | Re: [PATCH] Friendly log messages for CLI server | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53706@lists.php.net to get a copy of this message | ||
On Thu, Jun 30, 2011 at 20:14, Lars Bo Rasmussen <lars@k0ngehuset.dk> 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