![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
1.0.13 |
|
Assignee:
|
Logback dev list
|
|
Components:
|
logback-access |
|
Created:
|
19/Nov/13 2:00 AM
|
|
Description:
|
The documentation for AccessPatternLayout states:
If no date format specifier is given then ISO8601 format is assumed.
But in actuality, the code defaults to CLF_DATE_PATTERN (i.e., "dd/MM/yyyy:HH:mm:ss Z")
(Note that the %date specifier for the normal logback-classic PatternLayout is defaulting to ISO8601).
I'm not sure if the documentation is wrong or the code is. The documentation also indicates that %d can be used in the AccessPattern Layout, but I don't believe it can. However, neither option matches the Apache Common Log Format.
My guess is that the documentation is wrong (copy/pasted from other PatternLayout) and that the CLF_DATE_PATTERN is wrong, as it should be "dd/MMM/yyyy:HH:mm:ss Z" (note, the extra M to display the 3-character month)
|
|
Project:
|
logback
|
|
Priority:
|
Minor
|
|
Reporter:
|
Eric Dahl
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev