|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ictk.util.Log
Log - a static class with useful global debugging routines. This
can be used to manage Debug level output and route output
to log files or what have you.
Field Summary | |
static long |
Board
|
static long |
BoardNotation
|
static boolean |
debug
to remove all debugging from bytecode set to false |
static java.io.PrintStream |
err
where the debug and error logs go |
static long |
GameInfo
|
static long |
GameReader
|
static long |
GameWriter
|
static long |
History
|
static long |
ICSEvent
|
static long |
ICSEventParser
|
static boolean |
isFullyQualifiedClass
do you want fully qualified (package included) class names? |
static long |
Move
|
static long |
MoveNotation
|
static java.io.PrintStream |
out
where the more normal logs go |
static int |
PROG_CRITICAL
|
static int |
PROG_ERROR
|
static int |
PROG_WARNING
|
static int |
USER_CRITICAL
|
static int |
USER_ERROR
|
static int |
USER_WARNING
|
Method Summary | |
static void |
addMask(long mask)
add a debug mask to turn the output on for a certain group of classes. |
static boolean |
debug(long mask)
|
static void |
debug(long mask,
java.lang.Object o)
prints out debug information to the log if the mask is found in the current mask setting. |
static void |
debug(long mask,
java.lang.String description,
java.util.regex.Matcher m)
this debug call is used specifically to dump a Regex Matcher object. |
static void |
debug2(long mask,
java.lang.Object o)
debug2 is the same as debug() but does not print the ClassName.method() header. |
static void |
error(int severity,
java.lang.String msg)
reports the error message to the error stream. |
static void |
errorIf(boolean t,
int severity,
java.lang.String msg)
this reports an error if the boolean condition is true |
static long |
getMask()
gets the current mask. |
static boolean |
isDebug(long mask)
are we debugging this mask? |
static void |
removeMask(long mask)
remove a debug mast to turn the output off for a certian group of classes. |
static void |
setMask(long mask)
set the whole mast |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean debug
public static java.io.PrintStream err
public static java.io.PrintStream out
public static final int PROG_CRITICAL
public static final int PROG_ERROR
public static final int PROG_WARNING
public static final int USER_CRITICAL
public static final int USER_ERROR
public static final int USER_WARNING
public static long History
public static long Board
public static long Move
public static long MoveNotation
public static long BoardNotation
public static long GameReader
public static long GameWriter
public static long GameInfo
public static long ICSEvent
public static long ICSEventParser
public static boolean isFullyQualifiedClass
Method Detail |
public static long getMask()
public static void setMask(long mask)
public static void addMask(long mask)
public static void removeMask(long mask)
public static boolean isDebug(long mask)
public static void debug(long mask, java.lang.Object o)
public static void debug2(long mask, java.lang.Object o)
public static void errorIf(boolean t, int severity, java.lang.String msg)
public static void error(int severity, java.lang.String msg)
public static void debug(long mask, java.lang.String description, java.util.regex.Matcher m)
public static boolean debug(long mask)
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |