|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.Debug
public class Debug
Debug management class.
You can use calls to Debug.print
for any debug message you want to print
in your program.
Field Summary | |
---|---|
private static boolean |
s_fSysMsg
Show system messages (level == -1)? |
private static int |
s_nDebugLevel
The current debug level. |
Constructor Summary | |
---|---|
Debug()
|
Method Summary | |
---|---|
static void |
print(java.lang.String s,
int nLevel)
Print a message to STDERR. |
static int |
setMaxDebugLevel(int nLevel)
Set the maximum debug level. |
static void |
traceSystemMessages()
Switch on printing of framework internal debug messages. |
static void |
traceSystemMessages(boolean fSwitch)
Switch printing of framework internal debug messages. |
static void |
untraceSystemMessages()
Switch off printing of framework internal debug messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int s_nDebugLevel
private static boolean s_fSysMsg
Constructor Detail |
---|
public Debug()
Method Detail |
---|
public static int setMaxDebugLevel(int nLevel)
When printing messages with print(java.lang.String, int)
, only messages with a debug level less or
equal the maximum debug level will be printed.
nLevel
- the maximum debug level. Defaults to 10.
public static void traceSystemMessages()
public static void untraceSystemMessages()
public static void traceSystemMessages(boolean fSwitch)
fSwitch
- if true, framework internal debug messages will henceforward be printed.public static void print(java.lang.String s, int nLevel)
Prints s
to System.err
, if nLevel
is less
or equal the maximum debug level.
s
- the debug message.nLevel
- the message's debug level. Must be greater or equal zero.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |