php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53777 PHP-FPM error log date format is different from PHP error_log
Submitted: 2011-01-18 15:52 UTC Modified: 2011-01-29 11:15 UTC
From: simast at gmail dot com Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.5 OS: Linux (Ubuntu)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simast at gmail dot com
New email:
PHP Version: OS:

 

 [2011-01-18 15:52 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-18 15:59 UTC] derick@php.net
I would actually suggest changing both formats to:
yyyy-mm-dd hh:ii:ss
 [2011-01-18 16:04 UTC] 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-29 11:13 UTC] 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-29 11:15 UTC] fat@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
 [2011-01-29 11:15 UTC] fat@php.net
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 ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC