Req #66110 [NEW]: Add possibility to use millisecond precision timestamps in logging

From: Date: Mon, 18 Nov 2013 07:01:10 +0000
Subject: Req #66110 [NEW]: Add possibility to use millisecond precision timestamps in logging
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182806@lists.php.net to get a copy of this message
From: andreas dot lindemann at de dot bp dot com Operating system: PHP version: Irrelevant Package: Unknown/Other Function Bug Type: Feature/Change Request Bug description:Add possibility to use millisecond precision timestamps in logging Description: ------------ For high volume sites, it would be nice to be able to use a millisecond precision timestamp for the php-fpm access log and the PHP error log, so requests can show up in the correct order in logfiles (i.e. when using logstash to centralize logging). Otherwise, even with only several dozen requests per second, you'll end up with requests showing up in the wrong order if you have multiple webservers logging to a central place. Unfortunately, php-fpm access log only accepts a strftime() format and there's no way to specify that kind of precision there. It would be useful just to have an additional access.format variable to output a unix timestamp with millisecond precision, like "1384757986.861". Same would be nice for the general php error log. -- Edit bug report at https://bugs.php.net/bug.php?id=66110&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66110&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66110&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66110&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66110&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66110&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66110&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66110&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66110&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66110&r=support Expected behavior: https://bugs.php.net/fix.php?id=66110&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66110&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66110&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66110&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66110&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66110&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66110&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66110&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66110&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66110&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66110&r=mysqlcfg

« previous php.bugs (#182806) next »