|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.botutil.VerboseConsole
The VerboseConsole class is used to dynamicaly define the verbosity of all console output. This class can be used as a substitute to System.out.
Field Summary | |
static int |
CRITICAL
|
static int |
HIGH
|
static int |
LOW
|
static int |
MEDIUM
|
static int |
SILENT
|
Constructor Summary | |
VerboseConsole()
|
|
VerboseConsole(int level)
|
Method Summary | |
static void |
print(String s)
Print a string at the default level. |
static void |
print(String s,
int level)
Print a string at a given level. |
static void |
println(String s)
Print a string at the default level. |
static void |
println(String s,
int level)
Print a string at a given level. |
static void |
setLevel(int level)
Sets the verbocity level of the console. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SILENT
public static final int LOW
public static final int MEDIUM
public static final int HIGH
public static final int CRITICAL
Constructor Detail |
public VerboseConsole()
public VerboseConsole(int level)
Method Detail |
public static void setLevel(int level)
level
- The target verbocity level.public static void print(String s, int level)
s
- The string to print.level
- The level of this message.public static void print(String s)
s
- The string to print.public static void println(String s, int level)
s
- The string to print.level
- The level of this message.public static void println(String s)
s
- The string to print.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |