public static Logger getLogger(String name) {
      if (LOGGER_TYPE == null) {
         LOGGER_TYPE = getLoggerType();
      }
      if (LOGGER_TYPE == LoggerType.COMMONS) {
            try {
               Object logger = getLogMethod.invoke(null, name);
               return new Logger(logger);
            } catch (IllegalAccessException e) {
               e.printStackTrace();
            } catch (InvocationTargetException e) {
               e.printStackTrace();
            }
      }
      return new Logger(java.util.logging.Logger.getLogger(name));
   }