|  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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: simast at gmail dot com
New email:
PHP Version: OS:


 [2011-01-18 15:52 UTC] simast at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-18 15:59 UTC]
I would actually suggest changing both formats to:
yyyy-mm-dd hh:ii:ss
 [2011-01-18 16:04 UTC]
It should be the same. 

Then, I would say "don't change error_log format and move FPM log format to fit 
 [2011-01-29 11:13 UTC]
Automatic comment from SVN on behalf of fat
Log: - Fixed bug #53777 (php-fpm log format now match php_error log format).
 [2011-01-29 11:15 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
 [2011-01-29 11:15 UTC]
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
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-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 27 07:03:39 2023 UTC