myShell
Class LogWriter

java.lang.Object
  extended by myShell.LogWriter

public class LogWriter
extends java.lang.Object

It is used to write a log file explaining the steps the program went through during its execution.

Author:
Leo PERRIN (perrin.leo@gmail.com)

Field Summary
(package private)  java.lang.String logName
          The name of the written file.
 
Constructor Summary
LogWriter()
          Creates an instance of LogWriter and writes the current date in it.
 
Method Summary
 void append(java.lang.String line)
          Appends the String "line" at the end of the log file and prints it on the screen.
 void finish()
          Writes the finishing time in the log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logName

java.lang.String logName
The name of the written file.

Constructor Detail

LogWriter

public LogWriter()
Creates an instance of LogWriter and writes the current date in it.

Method Detail

append

public void append(java.lang.String line)
Appends the String "line" at the end of the log file and prints it on the screen.

Parameters:
line - The line to be appended in the file.

finish

public void finish()
Writes the finishing time in the log file.