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

LoggingEventV0 is loosing the nanoseconds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-beta0
    • Fix Version/s: 1.3.0
    • Component/s: logback-classic
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: