Method Summary |
|
public static void | addDebugClass(Class class1) Indicate that debug messages should be output for the given class. |
public static void | addDebugClass(String className) Indicate the class name[:depth] to add to debug output. |
public static void | addDebugClass(String className, int depth) Indicate that debug messages should be output for the given class. |
public static void | clearDebugClasses() Resets the lists of classes to debug and not debug to be
empty, and turns debugAll off. |
public static void | close() |
public static void | debug(String event) Print a debug message. |
public static void | debug(String event, int lines) Print a debug message with the given number of stack lines. |
public static void | debug(Throwable thr) Use this to display debug output for expected or common exceptions. |
public static void | debug(String m, Throwable e) Issue a debug statement regarding the given
Throwable . |
static void | flush() |
static int | getClassStackDepth(String cname) |
public static String | getHostName() |
public static PrintStream | getLog() |
public static String | getLogFilename() |
public static String | getStack(int lines) Retrieve the given number of lines of the current stack, as a
string. |
public static String | getStack(Throwable t) Retrieve the full stack from the given Throwable, as a string. |
public static String | getStack(int lines, Throwable thr) Retrieve the given number of lines of stack from the given Throwable,
as a string. |
public static String | getSystemInfo() |
public static String[] | init(String[] args) Debug/log initialization, presumably from the command line. |
public static void | initLogging(String filename) Enable log output to the given file. |
public static boolean | isClassDebugEnabled(Class cls) |
public static boolean | isClassDebugEnabled(String className) |
public static void | log(Throwable thr) Log an exception. |
public static void | log(String message, Throwable thr) Log an exception with a description. |
public static void | log(String message) Log a message. |
public static boolean | loggingInitialized() |
public static void | removeDebugClass(String className) |
public static void | removeDebugClass(Class class1) Indicate that debug messages should no longer be output for the given
class. |
public static void | setDebugStackDepth(int depth) |
public static void | setDestination(PrintStream ps) Enable log output to the given
PrintStream . |
public static void | setEchoToConsole(boolean b) Set whether messages are echoed to the console in addition to the log. |
public static void | setShowThreads(boolean b) Set whether to display the current thread of execution. |
public static void | setSynchronous(boolean b) Set whether log output is synchronous with program execution. |
public static void | warn(String message) Issue a programmer warning, which will include the source line of the
warning. |
public static void | warn(String message, Throwable e) Issue a programmer warning, which will include the source line of the
warning. |
public static void | warn(String message, int lines) Issue a programmer warning, which will include the source line of the
warning, and a stack trace with up to the given number of lines. |
public static void | warn(Throwable thr) Issue a programmer warning, which will include the source line of the
original thrown object. |