/** * Write the string as a line to the trace stream. If the * "stack" property is enabled, then the caller's stack call * is also shown in the date. * * @param str string to write to the trace stream */ public static void trace(String str) { if (timeStamp) System.err.print(new Date()); if(caller) System.err.print(ExceptionUtil.getCallAt(new Throwable(), 1) + " "); System.err.println(str); if (stackLines > 0) System.err.println(ExceptionUtil.getStackTraceLines(new Throwable(), stackLines)); else if (stackPrefix != null) System.err.println(ExceptionUtil.getStackTraceUpTo(new Throwable(), stackPrefix)); } }
/** * Write the string as a line to the trace stream. If the * "stack" property is enabled, then the caller's stack call * is also shown in the date. * * @param str string to write to the trace stream */ public static void trace(String str) { if (timeStamp) System.err.print(new Date()); if(caller) System.err.print(ExceptionUtil.getCallAt(new Throwable(), 1) + " "); System.err.println(str); if (stackLines > 0) System.err.println(ExceptionUtil.getStackTraceLines(new Throwable(), stackLines)); else if (stackPrefix != null) System.err.println(ExceptionUtil.getStackTraceUpTo(new Throwable(), stackPrefix)); } }
/** * Write the string as a line to the trace stream. If the * "stack" property is enabled, then the caller's stack call * is also shown in the date. * * @param str string to write to the trace stream */ public static void trace(String str) { if (timeStamp) System.err.print(new Date()); if(caller) System.err.print(ExceptionUtil.getCallAt(new Throwable(), 1) + " "); System.err.println(str); if (stackLines > 0) System.err.println(ExceptionUtil.getStackTraceLines(new Throwable(), stackLines)); else if (stackPrefix != null) System.err.println(ExceptionUtil.getStackTraceUpTo(new Throwable(), stackPrefix)); } }