protected void log(Throwable e) {
    if (TRACE) {
      e.printStackTrace();
    }

    logger.log("NATPuncher: error occurred");

    logger.log(e);
  }
  protected void log(String str) {
    if (TRACE) {
      System.out.println(str);
    }

    logger.log("NATPuncher: " + str);
  }
Exemple #3
0
  public static void log(String str) {
    if (logging_on) {

      if (logger != null) {

        logger.log(str);

      } else {

        System.out.println(str);
      }
    }
  }