Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3075

JsonTemplateLayout timestamp resolver doesn't format nanoseconds

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.14.0, 2.14.1
    • Fix Version/s: 3.0.0, 2.15.0
    • Component/s: JsonTemplateLayout
    • Labels:
      None

      Description

      As reported inĀ LOG4J2-3073, TimestampResolver of JsonTemplateLayout doesn't format nanoseconds. The suspect is in the following form:

      formatResolverContext.calendar.setTimeInMillis(timestampMillis);
      formatResolverContext.timestampFormat.format(
              formatResolverContext.calendar,
              formatResolverContext.formattedTimestampBuilder);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vy Volkan Yazici
                Reporter:
                paulrubin37 Paul Rubin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: