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

Mismatch between javadoc and default implementation for ILoggingEvent#getNanoseconds()

    XMLWordPrintable

Details

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

    Description

      The javadoc for ILoggingEvent#getNanoseconds() says:

      @return the number of elapsed nanoseconds since epoch

      The default implementation simply returns the result of calling Instant#getNano(). However this method returns the number of nanoseconds, later along the time-line, from the start of the second - and not since _epoch._

      There seems to be a mismatch between the javadoc and the default implementation provided by the interface.

      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: