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

JsonTemplateLayout timestamp resolver doesn't format nanoseconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.0, 2.14.1
    • 3.0.0, 2.15.0
    • JsonTemplateLayout
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: