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

Typo in a javadoc for getTimeStamp/setTimeStamp in LoggingEvent?

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0-alpha13
    • 1.3.0-alpha11, 1.3.0-alpha12
    • logback-classic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: