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

XMLWordPrintable

    • 9
    • b36
    • Verified

      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


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

              Created:
              Updated:
              Resolved: