|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--elge.engine.Debug
Debug is the main class and with mainly static methods to provide an easy interface for printing messages from the code to the output.
For now, the Debug uses a Log4J library and its basic configuration
to log the messages (that means no debug is printed, only the INFO and about levels).
| Field Summary | |
protected static Debug |
shared
The shared isntance that is used. |
| Method Summary | |
static void |
debug(Class cls,
String message)
Prints debug (log4j DEBUG level) message. |
static void |
debug(Class cls,
String message,
Throwable ex)
Prints debug (log4j DEBUG level) message. |
static void |
debug(Object obj,
String message)
Prints debug (log4j DEBUG level) message. |
static void |
debug(Object obj,
String message,
Throwable ex)
Prints debug (log4j DEBUG level) message. |
static void |
error(Class cls,
String message)
Prints error message. |
static void |
error(Class cls,
String message,
Throwable ex)
Prints error message. |
static void |
error(Object obj,
String message)
Prints error message. |
static void |
error(Object obj,
String message,
Throwable ex)
Prints error message. |
static void |
loadConfig()
Loads the config for the log4j. |
static void |
trace(Class cls,
String message)
Prints info (log4j INFO level) message. |
static void |
trace(Class cls,
String message,
Throwable ex)
Prints info (log4j INFO level) message. |
static void |
trace(Object obj,
String message)
Prints info (log4j INFO level) message. |
static void |
trace(Object obj,
String message,
Throwable ex)
Prints info (log4j INFO level) message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Debug shared
| Method Detail |
public static void loadConfig()
public static void error(Object obj,
String message,
Throwable ex)
obj - message initiatormessage - text of errorex - exception
public static void error(Class cls,
String message,
Throwable ex)
cls - message initatior classmessage - message textex - exception
public static void error(Object obj,
String message)
obj - initiatormessage - message text
public static void error(Class cls,
String message)
cls - initiatormessage - message text
public static void trace(Object obj,
String message)
obj - initiatormessage - info text
public static void trace(Class cls,
String message)
cls - intiator classmessage - info text
public static void trace(Object obj,
String message,
Throwable ex)
obj - initiatormessage - info textex - exception
public static void trace(Class cls,
String message,
Throwable ex)
cls - initiator classmessage - info textex - throwed exception
public static void debug(Object obj,
String message)
obj - initiatormessage - debug text
public static void debug(Class cls,
String message)
cls - initiator classmessage - debug text
public static void debug(Object obj,
String message,
Throwable ex)
obj - initiatormessage - debug textex - throwed exception
public static void debug(Class cls,
String message,
Throwable ex)
cls - initiator classmessage - debug messageex - throwed exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||