Issue Details (XML | Word | Printable)

Key: LOGCXX-40
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: Curt Arnold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

PatternLayout does not support Java date format specifiers

Created: 13/Nov/04 01:19 AM   Updated: 13/Nov/04 02:51 AM
Return to search
Component/s: Layout
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Resolution Date: 13/Nov/04 02:51 AM


 Description  « Hide
log4j's PatternLayout accepts a few special names (DATE, ISO8601, ABSOLUTE) and java.text.SimpleDateFormat patterns. log4cxx's PatternLayout supported the same special names and strftime patterns. This has been resolved by (in conjunction with other time related changes) by adding log4cxx::helpers::SimpleDateFormat and log4cxx::helpers::StrftimeDateFormat classes. If a date pattern is not recognized as a special name, then if it contains a % it is interpreted using StrftimeDateFormat, otherwise SimpleDateFormat.

The implementation of StrftimeDateFormat uses Apache Portable Runtime's apr_strftime which does not appear to support the %Q specification for milliseconds.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.