[Log4cplus-devel] [ log4cplus-Bugs-3101459 ] TTCCLayout should print millis since start, not date/t
Logging Framework for C++
Brought to you by:
wilx
From: SourceForge.net <no...@so...> - 2012-07-03 18:03:05
|
Bugs item #3101459, was opened at 2010-11-02 02:39 Message generated for change (Comment added) made by wilx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3101459&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: v1.0.4 Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Jacek Sieka (arnetheduck) Assigned to: Václav Zeman (wilx) Summary: TTCCLayout should print millis since start, not date/time Initial Comment: According to the documentation, the first field of TTCClayout should be milliseconds since startup - instead it prints formatted date/time ---------------------------------------------------------------------- >Comment By: Václav Zeman (wilx) Date: 2012-07-03 11:03 Message: This is now fixed on trunk as well. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2010-11-23 09:36 Message: I have implemented the behaviour as described by the documentation in revision 1490 on PRODUCITON_1_0_x branch. Now, when DateFormat property of TTCCLayout is not set or when it is empty, the time is shown as milliseconds since start of application. ---------------------------------------------------------------------- Comment By: Václav Zeman (wilx) Date: 2010-11-04 14:40 Message: The docs were taken from log4j docs verbatim, it seems. Unfortunately, log4cplus does not implement the behaviour/layout the same as log4j does. The relative time since start is not possible at the moment. You could get absolute (instead of relative) time in milliseconds since epoch using "%s%q" for DateFormat property. I will fix the documentation to reflect the real state of things and I will try to implement the relative time some time in the future. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3101459&group_id=40830 |