Simplify/Replace com.sun.javafx.logging.PlatformLogger class & its usage

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx11
    • Component/s: javafx
    • None
    • generic
    • generic

      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));

            Assignee:
            Unassigned
            Reporter:
            Ajit Ghaisas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: