|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jthomas.util.Log
Log information with time stamp Usage: To have Log output displayed Log.setLogOn(true,filename) To produce Log output just specify an identifier and a string as a parameters to the Class method "Log.out(String id,String x)" The idea is that the "id" string should be unique so one could search for it For example: Log.out("Options01", loginfo);
Field Summary | |
static boolean |
LogOn
|
static java.io.PrintWriter |
LogOut
|
Method Summary | |
static void |
exception(java.lang.Exception e)
|
static void |
main(java.lang.String[] argv)
|
static void |
out(java.lang.String id,
java.lang.String logstr)
Method: Log.out(String string) If LogOn switch set, display Log info |
static void |
out(java.lang.String id,
java.lang.Throwable e)
Method: Log.out(id, throwable) If LogOn switch set, display stacktrace |
static void |
setLogOn(boolean OnOff,
java.lang.String file)
Method: setLogOn(boolean switch) Method to let caller turn the Log switch on or off |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean LogOn
public static java.io.PrintWriter LogOut
Method Detail |
public static void setLogOn(boolean OnOff, java.lang.String file)
public static void out(java.lang.String id, java.lang.String logstr)
public static void out(java.lang.String id, java.lang.Throwable e)
public static void exception(java.lang.Exception e)
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |