[logback-dev] [JIRA] Updates for LOGBACK-1661: Incorrect javadoc description for ILoggingEvent#getNanoseconds()

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Aug 15 23:23:00 CEST 2022


logback / LOGBACK-1661 [Open]
Incorrect javadoc description for ILoggingEvent#getNanoseconds()

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1661

==============================
 Issue created
------------------------------

Bertrand Renuart created this issue on 15/Aug/22 11:10 PM
Summary:              Incorrect javadoc description for ILoggingEvent#getNanoseconds()
Issue Type:           Bug
Affects Versions:     1.3.0-beta0
Assignee:             Logback dev list
Components:           logback-classic
Created:              15/Aug/22 11:10 PM
Priority:             Major
Reporter:             Bertrand Renuart
Description:
  The javadoc for [ILoggingEvent#getNanoseconds()|https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/spi/ILoggingEvent.java#L127-L141] says:
  {noformat}
  @return the number of elapsed nanoseconds since epoch{noformat}
  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.


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list