|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.psychomad.psycholib.log.Log
public class Log
This class provides several methods to log messages. Particulary it enable, after giving a correct filename, to write debug message in a file.
| Constructor Summary | |
|---|---|
Log()
|
|
| Method Summary | |
|---|---|
static void |
deb(java.lang.Object msg)
This method allow to write to the stderr (or to a file if one available) the object pass in arg ONLY if the debug mode is activated. |
static void |
err(java.lang.Object msg)
This method allow to write to the stderr the object pass in arg. |
static boolean |
isDebugModeEnabled()
Allow to know if the debug mode is active. |
static void |
out(java.lang.Object msg)
This method allow to write to the stdout the object pass in arg. |
static void |
setDebFilename(java.lang.String filename)
This method allow to use a file that get the debug output. |
static void |
setDebugModeEnabled(boolean newDebugMode)
Allow to set the debug mode on or off. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log()
| Method Detail |
|---|
public static void out(java.lang.Object msg)
msg - the object to writepublic static void err(java.lang.Object msg)
msg - the object to writepublic static void setDebugModeEnabled(boolean newDebugMode)
newDebugMode - the new debug mode. True activate the debug mode and
false desactivate it.public static boolean isDebugModeEnabled()
public static void deb(java.lang.Object msg)
msg - the object to writesetDebugModeEnabled(boolean),
setDebFilename(java.lang.String)public static void setDebFilename(java.lang.String filename)
filename - the name of the file that will be used for deb log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||