class Log
extends Object
A simple log with automatic time stamping.
- Author:
- Ragnarok
-
Constructor Summary
Constructors
Constructor |
Description |
Log(File file) |
Construct a Log instance that writes to the File file.
|
-
Method Summary
Modifier and Type |
Method |
Description |
void |
append(String entry) |
Write entry to a new line in the log, with appropriate time stamp.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Construct a Log instance that writes to the File file.
- Parameters:
file
- A File for the log to write to.
-
Method Details
-
public void append(
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.