Details
-
Type:
Improvement
-
Status:
Postponed
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Log
-
Labels:None
Description
At the moment the format and the timezone of the timestamp in the log is hardcoded (date('c')).
This is very unattractive because of at least two reasons:
1. It is not possible to change the format e.g. to see milliseconds for performance profiling in the log
2. It is not possible to have a log with UTC timestamps even if the web application has other locale settings.
My recommendation is to give the possibility to assign a Zend_Date object to a Zend_Log object (or even better to a Zend_Date_Formatter object) which defines format and timezone for the log.
Issue Links
| This issue is related to: | ||||
| ZF-4431 | Zend causes php error or notice when using the log method |
|
|
|
There is no Zend_Date_Formatter class... you can simply set your wished format with toString($format); or a convinient method if any of the standard formats is used.
Details on implementation when having problems can be asked in the I18N mailing list.