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

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

    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

      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

          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: