|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.util.Debug
public final class Debug
Is used for debugging of information.
Copyright Enough Software 2004 - 2009
history
20-Jan-2003 - rob creation
| Field Summary | |
|---|---|
static Command |
RETURN_COMMAND
|
static boolean |
suppressMessages
|
| Constructor Summary | |
|---|---|
Debug()
|
|
| Method Summary | |
|---|---|
static void |
clearLog()
Clears the log messages from MESSAGES. |
void |
commandAction(Command cmd,
Displayable screen)
|
static void |
debug(String level,
String className,
int lineNumber,
Object message)
Prints the message or adds the message to the internal message list. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
boolean value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
byte value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
char value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
int value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
long value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
Object exception)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
short value)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Object message,
Throwable exception)
Prints a message. |
static void |
debug(String level,
String className,
int lineNumber,
Throwable exception)
Logs the given exception. |
static void |
exit()
|
static Form |
getLogForm(boolean reverseSort,
CommandListener listener)
Deprecated. use showLogForm instead |
static void |
showLog(Display display)
Shows the log with the current messages. |
static void |
showLog(Display display)
Shows the log with the current messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean suppressMessages
public static final Command RETURN_COMMAND
| Constructor Detail |
|---|
public Debug()
| Method Detail |
|---|
public static void clearLog()
public static void debug(String level,
String className,
int lineNumber,
Object message,
Object exception)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.exception - the exception or just an ordinary object
public static void debug(String level,
String className,
int lineNumber,
Object message,
char value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the char value
public static void debug(String level,
String className,
int lineNumber,
Object message,
int value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the int value
public static void debug(String level,
String className,
int lineNumber,
Object message,
long value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the long value
public static void debug(String level,
String className,
int lineNumber,
Object message,
short value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the short value
public static void debug(String level,
String className,
int lineNumber,
Object message,
byte value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the byte value
public static void debug(String level,
String className,
int lineNumber,
Object message,
boolean value)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.value - the boolean value
public static void debug(String level,
String className,
int lineNumber,
Object message)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.
public static void debug(String level,
String className,
int lineNumber,
Throwable exception)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementexception - the exception which was catched.
public static void debug(String level,
String className,
int lineNumber,
Object message,
Throwable exception)
level - the log level, e.g. "debug"className - the name of the classlineNumber - the line numer of the log statementmessage - the message.exception - the exception
public static Form getLogForm(boolean reverseSort,
CommandListener listener)
reverseSort - true when the last message should be shown firstlistener - the command listener for the created form
NullPointerException - when the listener is nullshowLog(Display)public static void showLog(Display display)
display - the display-variable for the current MIDlet.public static void showLog(Display display)
display - the display-variable for the current MIDlet.
public void commandAction(Command cmd,
Displayable screen)
commandAction in interface CommandListenerpublic static void exit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||