History log of /openjdk10/jdk/test/java/util/logging/HigherResolutionTimeStamps/LogRecordWithNanosAPI.java
Revision Date Author Comments
# 13265:dc3322ef23ff 06-Dec-2015 dfuchs

8144262: LogRecord.getMillis() method is a convenience API that should not have been deprecated
Summary: LogRecord.getMillis() is no longer deprecated. LogRecord.setInstant() check that the instant millis can fit in a long millisecond-since-epoch.
Reviewed-by: lancea, rriggs, smarks


# 11500:710db3eff010 25-Feb-2015 dfuchs

8072645: java.util.logging should use java.time to get more precise time stamps
Summary: j.u.logging uses j.t.Instant to store LogRecord time stamps. XMLFormatter format is updated to allow for a new optional <nanos> element containing a nano second adjustment. SimpleFormatter passes a ZonedDateTime object to String.format. LogRecord getMillis/setMillis are deprecated, replaced by getInstant/setInstant.
Reviewed-by: scolebourne, plevart, rriggs
Contributed-by: daniel.fuchs@oracle.com, peter.levart@gmail.com