Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1657

LoggingEventV0 is loosing the nanoseconds

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0
    • 1.3.0-beta0
    • logback-classic
    • None

    Description

      LoggingEventV0 stores the event timestamp as a long with mills precision. It therefore looses the nanoseconds precision from the original LoggingEvent.

      Instead it should rather get and store the Instant from the original ILoggingEvent and (if needed) derive the millis from it.

      Also, it doesn't implement the getInstant() method inherited from the ILoggingEvent interface and therefore inherits the default implementation which returns null. This may be rather confusing when the original event was initialized with an Instant.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            brenuart Bertrand Renuart
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: