Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8072645

java.util.logging should use java.time to get more precise time stamps

XMLWordPrintable

        java.util.logging.LogRecord contains a millisecond time stamp, taken from System.currentTimeMillis() - and java.util.logging.SimpleFormatter uses java.util.Date to format the log event time.

        Millisecond resolution is often too coarse to accurately order log events coming from different JVMs.

        However java.time.Clock.systemUTC().instant() makes it possible to get more accurate time stamp. This RFE proposes to change java.util.logging to make use of the increased precision offered by java.time.

          There are no Sub-Tasks for this issue.

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: