edu.whoi.ursa.argoDatabase.log
Class Log._Log

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.log.Log._Log
Enclosing class:
Log

private static class Log._Log
extends java.lang.Object

Author:
Alexander K. Ekholm

Field Summary
private  java.io.FileOutputStream fileOutputStream
           
private static java.util.Calendar logDate
           
private static java.lang.String logDir
           
private  java.io.File logfile
           
private  java.lang.String logName
           
private  java.io.PrintStream printStream
           
 
Constructor Summary
private Log._Log(java.lang.String logName)
           
 
Method Summary
protected  void finalize()
           
private  java.io.PrintStream getPrintStream(java.lang.String name)
           
private  void log(java.lang.String log, java.lang.Object... things)
           
private  java.io.File openLogfile(java.lang.String name)
           
private static java.lang.String prefix()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logDir

private static final java.lang.String logDir

logDate

private static java.util.Calendar logDate

logfile

private java.io.File logfile

printStream

private java.io.PrintStream printStream

fileOutputStream

private java.io.FileOutputStream fileOutputStream

logName

private java.lang.String logName
Constructor Detail

Log._Log

private Log._Log(java.lang.String logName)
Parameters:
logname -
Method Detail

prefix

private static java.lang.String prefix()

log

private void log(java.lang.String log,
                 java.lang.Object... things)
Parameters:
log -
things -

openLogfile

private java.io.File openLogfile(java.lang.String name)
Parameters:
name -
Returns:
Open a logfile: [logDir]/[name]/YYYY-MM-DD_hh-mm-ss_[name]_[count].txt

getPrintStream

private java.io.PrintStream getPrintStream(java.lang.String name)
Parameters:
name -
Returns:

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable