This bug has been created to address some of the valid review comments raised during review of JDK-8195799.
In JavaFX codebase -
1) com.sun.javafx.logging.PlatformLogger class was introduced while fixing JDK-8195799. Consider dropping com.sun.javafx.logging.PlatformLogger completely and directly use System.Logger instead.
2) Use System.Logger.Levels instead of com.sun.javafx.logging.PlatformLogger.Levels
Another suggestion is -
In com.sun.javafx.logging.PlatformLogger class, we don't need the loggers map.
getLogger() method can simply return - new PlatformLogger(System.getLogger(name));