[
https://issues.apache.org/jira/browse/LOG4J2-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14075514#comment-14075514
]
Scott Harrington commented on LOG4J2-670:
-----------------------------------------
You're going to get complaints from more folks about changing this
long-standing format, which happens to be the default if nothing is specified
after the '%d'.
What I mean is, a lot of people have been getting the space separator, and they
are not explicitly asking for ISO8601, and now they're going to start getting a
'T' separator.
Presence/absence of a space will affect anyone who slices up their log files
using awk or cut with whitespace delimiters.
I suggest you introduce a new pattern named 'DEFAULT' (and which gets used by
default):
{noformat}
%d{ISO8601} = yyyy-MM-dd'T'HH:mm:ss,SSS
%d{ISO8601_BASIC} = yyyyMMdd'T'HHmmss,SSS
%d = %d{DEFAULT} = yyyy-MM-dd HH:mm:ss,SSS
{noformat}
> DatePatternConverter ISO8601_PATTERN does not conform to ISO8601
> ----------------------------------------------------------------
>
> Key: LOG4J2-670
> URL: https://issues.apache.org/jira/browse/LOG4J2-670
> Project: Log4j 2
> Issue Type: Bug
> Components: Pattern Converters
> Affects Versions: 2.0-rc1
> Reporter: Ralph Goers
> Assignee: Remko Popma
> Fix For: 2.0.1
>
>
> ISO8601_PATTERN is defined with a space between the date and the time.
> ISO8601 requires a 'T' between the date and the time.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]