space.nucleus
Class Logger

java.lang.Object
  extended byspace.nucleus.Logger

public class Logger
extends java.lang.Object

Writes log to a file.

Author:
Ron Coleman, Ph.D.

Method Summary
 void dump(java.util.LinkedList tuples)
          Dumps the space entries to the log file
static Logger getInstance()
           
static Logger getInstance(java.lang.String file)
           
static java.lang.String getVersion(java.lang.String revision)
          Returns the version number from the VSS revision string.
 void write(java.lang.String msg)
          Write message to the log and time stamp it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Logger getInstance()

getInstance

public static Logger getInstance(java.lang.String file)

write

public void write(java.lang.String msg)
Write message to the log and time stamp it.

Parameters:
msg - Message to write

dump

public void dump(java.util.LinkedList tuples)
Dumps the space entries to the log file

Parameters:
tuples - Space storage to dump.

getVersion

public static java.lang.String getVersion(java.lang.String revision)
Returns the version number from the VSS revision string.

Parameters:
revision - VSS revision string which is in the format $Revision: 9 $
Returns:
The revision number inside the expanded revision string.