logging
Class LogFile

java.lang.Object
  extended by logging.LogFile

public class LogFile
extends java.lang.Object

a container for multiple log records

Author:
Eric Peter
See Also:
LogRecord

Constructor Summary
LogFile()
           
 
Method Summary
 void add(LogRecord logToAdd)
          add a LogRecord as part of the log
 java.util.Date getStartedDate()
          return the Date when the log was started
 void LogToConsole()
          print log record out to the console
 void setBeginningLogInfo(java.lang.String start)
          call upon the beginning of a connection to put basic information into the start of the log record records a started logging time
 void setEndingLogInfo(java.lang.String end)
          call upon the end of a connection to put basic information into the end of the log record records a stopped logging time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFile

public LogFile()
Method Detail

setBeginningLogInfo

public void setBeginningLogInfo(java.lang.String start)
call upon the beginning of a connection to put basic information into the start of the log record records a started logging time

Parameters:
start - String to describe the start of the connection

setEndingLogInfo

public void setEndingLogInfo(java.lang.String end)
call upon the end of a connection to put basic information into the end of the log record records a stopped logging time

Parameters:
end - String to describe the end of the connection

LogToConsole

public void LogToConsole()
print log record out to the console


getStartedDate

public java.util.Date getStartedDate()
return the Date when the log was started

Returns:
the Date when the log was started

add

public void add(LogRecord logToAdd)
add a LogRecord as part of the log

Parameters:
logToAdd - LogRecord to add