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

Regression in logging.properties: specifying .handlers= for root logger (instead of handlers=) no longer works

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b36
    • Verification:
      Verified

      Description

      The following used to work in JDK 8:

      logging.properties:
      ==============
      .level = INFO
      .handlers = java.util.logging.ConsoleHandler
      ==============

      Test.java:
      public class Test {
          public static void main(String[] args) {
            java.util.logging.Logger.getAnonymousLogger().info("Hi!");
          }
      }

      but no longer woks in 9. In 9 you have to write:

      logging.properties:
      ==============
      .level = INFO
      handlers = java.util.logging.ConsoleHandler
      ==============

      (as specified in logging.properties)

      This is a regression, probably introduced by JDK-8033661


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: