docs: private void setupLoggerFromProperties(final Properties props) {
      final String driverLogLevel = PGProperty.LOGGER_LEVEL.get(props);
      if (driverLogLevel == null) {
        return; // Don't mess with Logger if not set
      }
      if ("OFF".equalsIgnoreCase(driverLogLevel)) {
        PARENT_LOGGER.setLevel(Level.OFF);
        return; // Don't mess with Logger if set to OFF
      } else if ("DEBUG".equalsIgnoreCase(driverLogLevel)) {
        PARENT_LOGGER.setLevel(Level.FINE);
      } else if ("TRACE".equalsIgnoreCase(driverLogLevel)) {
        PARENT_LOGGER.setLevel(Level.FINEST);
      }
  
      ExpressionProperties exprProps = new ExpressionProperties(props, System.getProperties());
      final String driverLogFile = PGProperty.LOGGER_FILE.get(exprProps);
      if (driverLogFile != null && driverLogFile.equals(loggerHandlerFile)) {
        return; // Same file output, do nothing.
      }
  
      for (java.util.logging.Handler handlers : PARENT_LOGGER.getHandlers()) {
        // Remove previously set Handlers
        handlers.close();
        PARENT_LOGGER.removeHandler(handlers);
        loggerHandlerFile = null;
      }
  
      java.util.logging.Handler handler = null;
      if (driverLogFile != null) {
        try {
          handler = new java.util.logging.FileHandler(driverLogFile);
          loggerHandlerFile = driverLogFile;
        } catch (Exception ex) {
          System.err.println("Cannot enable FileHandler, fallback to ConsoleHandler.");
        }
      }
  
      Formatter formatter = new SimpleFormatter();
  
      if ( handler == null ) {
        if (DriverManager.getLogWriter() != null) {
          handler = new WriterHandler(DriverManager.getLogWriter());
        } else if ( DriverManager.getLogStream() != null) {
          handler = new StreamHandler(DriverManager.getLogStream(), formatter);
        } else {
          handler = new StreamHandler(System.err, formatter);
        }
      } else {
        handler.setFormatter(formatter);
      }
  
      handler.setLevel(PARENT_LOGGER.getLevel());
      PARENT_LOGGER.setUseParentHandlers(false);
      PARENT_LOGGER.addHandler(handler);
    }