code: public static void logPrintf(String format, String... v) {
          if (enableLog) {
              String tmp = String.format(format, (Object[]) v);
              logger.log(Level.INFO, tmp);
          }
      }
docs: logPrintf prints the log with the format.
  
  @param format the format of the log.
  @param v the log.