public static void log(String str) {
   AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("v3.MD");
   diag_logger.log(str);
   if (DEBUG_CACHING) {
     System.out.println(
         Thread.currentThread().getName() + "|" + System.currentTimeMillis() + "] " + str);
   }
 }
Exemple #2
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);
    }
  }
Exemple #3
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);
    }
  }
Exemple #4
0
 private static void diagLoggerLog(String str) {
   diag_logger.log(str);
 }
Exemple #5
0
 static {
   diag_logger.setForced(true);
 }