public class Log
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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
|
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
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)