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