PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Logging » Log » Bug #7205

log time should not be affected by localization

Details

Submitted2006-03-26 19:43 UTC
Fromriccardo at datahost dot it
Assignedjon
StatusWont fix
PackageLog
PHP VersionIrrelevant
OSlinux
Roadmaps(Not assigned)

Comments

[2006-03-26 19:43 UTC] riccardo at datahost dot it

Description:
------------
Hello,

The time in the logs is affected by locale changes, i think this is a problem because we can generate incoherent logs. I think that the time should be system one and not the localized one.

I think that (for the file backend) the problem is here, from Log/file.php, line 301:

$line = sprintf($this->_lineFormat, strftime($this->_timeFormat),
$this->_ident, $this->priorityToString($priority),
$message) . $this->_eol;

You can find original bugreport here:
http://trac.seagullproject.org/ticket/1

Sorry for my english, thanks in advance.