Issues

ZF-9870: Zend_Log - line 303 - Allow us to define timestamp

Issue Type: Improvement Created: 2010-05-20T22:21:09.000+0000 Last Updated: 2010-05-31T11:59:02.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Mike Purcell (bigtruck72) Assignee: Jan Pieper (jpieper) Tags: - Zend_Log

Related issues: Attachments:

Description

As mentioned in summary, the timestamp value is hardcoded as date('c'). For some of us we use a specific time stamp pattern for our logging to allow for easy parsing via pre-defined regexes. It would be nice if we could override the value before being passed to $event var.

For now I have created a child class which extends Zend_Log and copied the Log() function contents to the child class to override, kinda messy but gets us by.

Thanks.

Comments

Posted by Jan Pieper (jpieper) on 2010-05-23T14:03:40.000+0000

Added in r22267.

Posted by Ramon Henrique Ornelas (ramon) on 2010-05-29T21:07:53.000+0000

Not was applied in branch.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-05-31T11:58:35.000+0000

Closing since new functionality should not be introduced in mini releases and the fix already was applied in trunk.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts