public class debug
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
debug.levels |
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger |
static java.io.PrintStream |
out |
Constructor and Description |
---|
debug() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applies() |
static boolean |
applies(debug.levels d) |
static void |
buffersize(int s)
Change the size of the ring-buffer used to buffer log records
when the push-level is higher than the debug level.
|
static java.lang.String |
classfilter() |
static void |
classfilter(java.lang.String s)
Set a regular expression to filter log records with.
|
static boolean |
invert() |
static void |
invert(boolean v) |
static debug.levels |
level()
The current debug level.
|
static void |
level(debug.levels l)
Set the current debug level.
|
static void |
level(java.lang.String l)
Set the current debug level.
|
static java.lang.String |
methodfilter() |
static void |
methodfilter(java.lang.String s)
Set a regular expression to filter log records with.
|
static java.lang.String |
msgfilter() |
static void |
msgfilter(java.lang.String s)
Set a regular expression to filter log records with.
|
static void |
printf(debug.levels d,
java.lang.String s) |
static void |
printf(debug.levels d,
java.lang.String format,
java.lang.Object... args) |
static void |
printf(java.lang.String s) |
static void |
printf(java.lang.String format,
java.lang.Object... args) |
static void |
println(debug.levels d,
java.lang.String s) |
static void |
println(java.lang.String s) |
static debug.levels |
pushlevel()
The current push-level.
|
static void |
pushlevel(debug.levels l)
Set the current push-level.
|
static void |
pushlevel(java.lang.String l)
Set the current push-level.
|
public static java.io.PrintStream out
public static java.util.logging.Logger logger
public static java.lang.String classfilter()
public static void classfilter(java.lang.String s)
s
- Regular expression acceptable to Pattern, or the empty string "" to unset.public static void msgfilter(java.lang.String s)
s
- Regular expression acceptable to Pattern, or the empty string
"" to unset.public static java.lang.String msgfilter()
public static java.lang.String methodfilter()
public static void methodfilter(java.lang.String s)
s
- Regular expression acceptable to Pattern, or the empty string
"" to unset.public static boolean invert()
public static void invert(boolean v)
public static debug.levels level()
#level.
public static void level(debug.levels l)
l
- The debug.level to set.#level.
public static void level(java.lang.String l)
l
- String representation of debug.level to set.#level.
public static debug.levels pushlevel()
E.g. Setting the debug-level to "debug", but the push-level to "error" would print out the last X lines of "debug" output, but only if a "error" level message was received.
public static void pushlevel(debug.levels l)
l
- the level
to set the push-level to.public static void pushlevel(java.lang.String l)
l
- String form of the level
to set the push-level to.public static void buffersize(int s)
s
- public static boolean applies(debug.levels d)
public static boolean applies()
public static void printf(debug.levels d, java.lang.String s)
public static void printf(java.lang.String s)
public static void printf(debug.levels d, java.lang.String format, java.lang.Object... args)
public static void printf(java.lang.String format, java.lang.Object... args)
public static void println(debug.levels d, java.lang.String s)
public static void println(java.lang.String s)