net.i2p.addressbook
Class Log

java.lang.Object
  extended by net.i2p.addressbook.Log

public class Log
extends java.lang.Object

A simple log with automatic time stamping.

Author:
Ragnarok

Constructor Summary
Log(java.io.File file)
          Construct a Log instance that writes to the File file.
 
Method Summary
 void append(java.lang.String entry)
          Write entry to a new line in the log, with appropriate time stamp.
 java.io.File getFile()
          Return the File that the Log is writing to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log(java.io.File file)
Construct a Log instance that writes to the File file.

Parameters:
file - A File for the log to write to.
Method Detail

append

public void append(java.lang.String entry)
Write entry to a new line in the log, with appropriate time stamp.

Parameters:
entry - A String containing a message to append to the log.

getFile

public java.io.File getFile()
Return the File that the Log is writing to.

Returns:
The File that the log is writing to.