示例#1
0
  private static void diagLoggerLogAndOut(Throwable e) {
    // handle possible recursive initialisation problems where the init of diag-logger gets
    // back here....

    if (diag_logger == null) {
      e.printStackTrace();
    } else {
      diag_logger.logAndOut(e);
    }
  }
示例#2
0
  private static void diagLoggerLogAndOut(String str, boolean stderr) {
    // handle possible recursive initialisation problems where the init of diag-logger gets
    // back here....

    if (diag_logger == null) {
      if (stderr) {
        System.err.println(str);
      } else {
        System.out.println(str);
      }
    } else {
      diag_logger.logAndOut(str, stderr);
    }
  }