[logback-dev] [JIRA] Updates for LOGBACK-1657: LoggingEventV0 is loosing the nanoseconds

QOS.CH (JIRA) noreply-jira at qos.ch
Sat Aug 13 12:28:00 CEST 2022


logback / LOGBACK-1657 [Open]
LoggingEventV0 is loosing the nanoseconds

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

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-1657

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

Bertrand Renuart created this issue on 13/Aug/22 12:14 PM
Summary:              LoggingEventV0 is loosing the nanoseconds
Issue Type:           Bug
Affects Versions:     1.3.0-beta0
Assignee:             Logback dev list
Components:           logback-classic
Created:              13/Aug/22 12:14 PM
Environment:
  LoggingEventV0 stores the event timestamp as a long with mills precision. It therefore looses the nanoseconds precision from the original LoggingEvent.
  
  Instead it should rather get and store the Instant from the original ILoggingEvent and (if needed) derive the millis from it.
  
  Also, it doesn't implement the getInstant() method inherited from the ILoggingEvent interface and therefore inherits the default implementation which returns null. This may be rather confusing when the original event was initialised with an Instant.
Priority:             Major
Reporter:             Bertrand Renuart


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



More information about the logback-dev mailing list