Example #1
0
 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);
   }
 }
Example #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);
    }
  }
Example #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);
    }
  }
Example #4
0
 private static void diagLoggerLog(String str) {
   diag_logger.log(str);
 }
Example #5
0
 static {
   diag_logger.setForced(true);
 }