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

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

    Details

      Backports

        Description

        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.

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/710db3eff010
            User: dfuchs
            Date: 2015-02-25 17:42:29 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/710db3eff010 User: dfuchs Date: 2015-02-25 17:42:29 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/710db3eff010
            User: lana
            Date: 2015-03-04 22:02:39 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/710db3eff010 User: lana Date: 2015-03-04 22:02:39 +0000

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: