Req #53777 [Opn->Csd]: PHP-FPM error log date format is different from PHP error_log
| From: | fat@php.net | Date: | Sat, 29 Jan 2011 10:15:43 +0000 |
| Subject: | Req #53777 [Opn->Csd]: PHP-FPM error log date format is different from PHP error_log | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158306@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53777&edit=1
ID: 53777
Updated by: fat@php.net
Reported by: simast at gmail dot com
Summary: PHP-FPM error log date format is different from PHP
error_log
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: FPM related
Operating System: Linux (Ubuntu)
PHP Version: 5.3.5
-Assigned To:
+Assigned To: fat
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Before log format was
Dec 25 13:16:14.610146 [LOG_LEVEL] message ...
Now it's been changed to:
- with debug log level
[29-Jan-2011 11:14:18.591977] LOG_LEVEL: message ...
- without debug log level
[29-Jan-2011 11:14:18] LOG_LEVEL: message ...
Previous Comments:
------------------------------------------------------------------------
[2011-01-29 11:13:26] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=307841
Log: - Fixed bug #53777 (php-fpm log format now match php_error log
format).
------------------------------------------------------------------------
[2011-01-18 16:04:30] fat@php.net
It should be the same.
Then, I would say "don't change error_log format and move FPM log format
to fit
error_log".
------------------------------------------------------------------------
[2011-01-18 15:59:52] derick@php.net
I would actually suggest changing both formats to:
yyyy-mm-dd hh:ii:ss
------------------------------------------------------------------------
[2011-01-18 15:52:29] simast at gmail dot com
Description:
------------
The date format used for PHP error_log is "[25-Dec-2010 12:57:43]"
The date format for PHP-FPM error log is "Dec 25 13:16:14.610146"
Anyway this can be unified? I usually log all PHP related errors to a
single log
file (PHP-FPM included) and this different date formatting is a bit
weirdo.
I have marked this as Feature/Change request rather than a bug. If there
are any
important reasons for keeping it this way (or any BC breaks) - please
ignore me.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53777&edit=1