code: private void redirectToJavaLoggerProxy() {
          DefaultLoggerProxy lp = DefaultLoggerProxy.class.cast(this.loggerProxy);
          JavaLoggerProxy jlp = new JavaLoggerProxy(lp.name, lp.level);
          // the order of assignments is important
          this.javaLoggerProxy = jlp;   // isLoggable checks javaLoggerProxy if set
          this.loggerProxy = jlp;
      }
docs: Creates a new JavaLoggerProxy and redirects the platform logger to it