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); } }