com.jthomas.util
Class Log

java.lang.Object
  |
  +--com.jthomas.util.Log

public class Log
extends java.lang.Object

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

LogOn

public static boolean LogOn

LogOut

public static java.io.PrintWriter LogOut
Method Detail

setLogOn

public static void setLogOn(boolean OnOff,
                            java.lang.String file)
Method: setLogOn(boolean switch) Method to let caller turn the Log switch on or off


out

public static void out(java.lang.String id,
                       java.lang.String logstr)
Method: Log.out(String string) If LogOn switch set, display Log info


out

public static void out(java.lang.String id,
                       java.lang.Throwable e)
Method: Log.out(id, throwable) If LogOn switch set, display stacktrace


exception

public static void exception(java.lang.Exception e)

main

public static void main(java.lang.String[] argv)