[
https://issues.apache.org/jira/browse/LOG4J2-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Remko Popma updated LOG4J2-1489:
--------------------------------
External issue URL: https://github.com/apache/logging-log4j2/pull/36
Description:
The garbage free documentation states that date patterns with the timezone
parameter {{"%d\{HH:mm:ss\}\{GMT+0\}"}} is garbage free but when using a
timezone parameter the garbage free FixedDateFormat is not used.
was:
The garbage free documentation states that date patterns with the timezone
parameter "%d{HH:mm:ss}{GMT+0}" is garbage free but when using a timezone
parameter the garbage free FixedDateFormat is not used.
>From the github pull request:
{quote}
This change is related to GC-free patterns as it allows DatePatternConverter to
support a timezone parameter and remain GC-free. Before this change the
DatePatternConverter falls back to the non-GC-free FastDateFormat if there is a
timezone parameter.
This is not related to LOG4J2-1246 as it is not outputting the timezone
information. It is just outputting the date/time relative to the timezone
parameter rather than the default timezone.
{quote}
> (GC) %date conversion pattern with a timezone parameter is not garbage free
> ---------------------------------------------------------------------------
>
> Key: LOG4J2-1489
> URL: https://issues.apache.org/jira/browse/LOG4J2-1489
> Project: Log4j 2
> Issue Type: Improvement
> Components: Pattern Converters
> Affects Versions: 2.6.2
> Reporter: Richard Zschech
> Assignee: Remko Popma
> Priority: Minor
> Fix For: 2.7
>
>
> The garbage free documentation states that date patterns with the timezone
> parameter {{"%d\{HH:mm:ss\}\{GMT+0\}"}} is garbage free but when using a
> timezone parameter the garbage free FixedDateFormat is not used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]