private static String formatStackTraceElement(StackTraceElement ste) { return compressClassName(ste.getClassName()) + "." + ste.getMethodName() + (ste.isNativeMethod() ? "(Native Method)" : (ste.getFileName() != null && ste.getLineNumber() >= 0 ? "(" + ste.getFileName() + ":" + ste.getLineNumber() + ")" : (ste.getFileName() != null ? "(" + ste.getFileName() + ")" : "(Unknown Source)"))); }
public static synchronized void dprint(java.lang.Object obj, String msg) { System.out.println(compressClassName(obj.getClass().getName()) + "(" + getThreadName(Thread.currentThread()) + "): " + msg); }
public static synchronized void dprint(java.lang.Object obj, String msg) { System.out.println(compressClassName(obj.getClass().getName()) + "(" + getThreadName(Thread.currentThread()) + "): " + msg); }
private static String formatStackTraceElement(StackTraceElement ste) { return compressClassName(ste.getClassName()) + "." + ste.getMethodName() + (ste.isNativeMethod() ? "(Native Method)" : (ste.getFileName() != null && ste.getLineNumber() >= 0 ? "(" + ste.getFileName() + ":" + ste.getLineNumber() + ")" : (ste.getFileName() != null ? "(" + ste.getFileName() + ")" : "(Unknown Source)"))); }
public static synchronized void dprint(java.lang.Object caller, String msg, Throwable t) { System.out.println(compressClassName(caller.getClass().getName()) + '(' + Thread.currentThread() + "): " + msg); if (t != null) printStackTrace(t.getStackTrace()); }
public static synchronized void dprint(String className, String msg) { System.out.println(compressClassName(className) + "(" + getThreadName(Thread.currentThread()) + "): " + msg); }
public static synchronized void dprint(java.lang.Object caller, String msg, Throwable t) { System.out.println(compressClassName(caller.getClass().getName()) + '(' + Thread.currentThread() + "): " + msg); if (t != null) printStackTrace(t.getStackTrace()); }
public static synchronized void dprint(String className, String msg) { System.out.println(compressClassName(className) + "(" + getThreadName(Thread.currentThread()) + "): " + msg); }