Пример #1
0
  protected void log(Throwable e) {
    if (TRACE) {
      e.printStackTrace();
    }

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

    logger.log(e);
  }
Пример #2
0
  protected void log(String str) {
    if (TRACE) {
      System.out.println(str);
    }

    logger.log("NATPuncher: " + str);
  }
Пример #3
0
  public static void log(String str) {
    if (logging_on) {

      if (logger != null) {

        logger.log(str);

      } else {

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