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

Loggers created by system classes are not initialized correctly when configured programmatically from application code.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • core-libs

      Because Loggers created by system classes and loggers created by applications are held in two separate namespaces, it makes it hard for an application to configure a system logger.

      - If the system class creates the logger first, then the application will get the system logger and everything will be fine.

      - If the application creates the logger first, then the system class will get a different logger, and the configuration of the application logger will be initially copied over to the system logger.
         However, not all configuration is copied: only the handlers. Level and useParentHandler and filters are not copied.


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

              Created:
              Updated:
              Resolved: