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

Typo in a javadoc for getTimeStamp/setTimeStamp in LoggingEvent?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-alpha11, 1.3.0-alpha12
    • Fix Version/s: 1.3.0-alpha13
    • Component/s: logback-classic
    • Labels:
      None

      Description

      The Javadoc for getTimeStamp/setTimeStamp  in ch/qos/logback/classic/spi/LoggingEvent specifies:

      Return the number of elapsed seconds since epoch in UTC.

      Set the number of elapsed seconds since epoch in UTC.

      while there is a code:this.timeStamp = (epochSecond*1000)+(milliseconds); making timeStamp of millisecond precision.

      Also Javadoc conflicts with base interface ILoggingEvent with wording:

      Return the number of elapsed milliseconds since epoch.

        Attachments

          Activity

            People

            Assignee:
            ceki Ceki Gülcü
            Reporter:
            gavenkoa Oleksandr Gavenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: