You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Paul Rubin (Jira)" <ji...@apache.org> on 2022/02/08 16:24:00 UTC
[jira] [Comment Edited] (LOG4J2-3075) JsonTemplateLayout timestamp resolver doesn't format nanoseconds
[ https://issues.apache.org/jira/browse/LOG4J2-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488983#comment-17488983 ]
Paul Rubin edited comment on LOG4J2-3075 at 2/8/22, 4:23 PM:
-------------------------------------------------------------
Sorry, I was looking at the wrong output this is working great.
was (Author: paulrubin37):
Sorry, I was looing at the wrong output this is working great.
> JsonTemplateLayout timestamp resolver doesn't format nanoseconds
> ----------------------------------------------------------------
>
> Key: LOG4J2-3075
> URL: https://issues.apache.org/jira/browse/LOG4J2-3075
> Project: Log4j 2
> Issue Type: Bug
> Components: JsonTemplateLayout
> Affects Versions: 2.14.0, 2.14.1
> Reporter: Paul Rubin
> Assignee: Volkan Yazici
> Priority: Minor
> Fix For: 3.0.0, 2.15.0
>
>
> As reported in LOG4J2-3073, {{TimestampResolver}} of {{JsonTemplateLayout}} doesn't format nanoseconds. The suspect is in the following form:
> {code:java}
> formatResolverContext.calendar.setTimeInMillis(timestampMillis);
> formatResolverContext.timestampFormat.format(
> formatResolverContext.calendar,
> formatResolverContext.formattedTimestampBuilder);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)