[PATCH] Friendly log messages for CLI server
| From: | Arpad Ray | Date: | Tue, 28 Jun 2011 22:37:15 +0000 |
| Subject: | [PATCH] Friendly log messages for CLI server | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-53640@lists.php.net to get a copy of this message | ||
Hi,
This little patch makes the following changes to the CLI web server's
console logging:
- Compacts messages to one line, so a 404 doesn't occupy three lines.
- Includes the response status code
- Colours messages according to their response code (success=green,
client error=yellow, server error=red)
- Appends the error message when there's a fatal PHP error
Here's an example:
http://spellign.com/patches/cli-before.png
http://spellign.com/patches/cli-after.png
And the patch:
http://spellign.com/patches/php-trunk-cli-server-messages.patch
I'd appreciate any feedback.
Regards,
Arpad