Package com.mckoi.util
Class Log
java.lang.Object
com.mckoi.util.Log
A log file/stream that logs some information generated by the system.
This is intended to help with debugging. It safely handles concurrent
output to the log.
- Author:
- Tobias Downer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Log
- Throws:
FileNotFoundException
IOException
-
Log
- Throws:
IOException
-
Log
- Throws:
FileNotFoundException
IOException
-
Log
protected Log()
-
-
Method Details
-
log
Writes an entry to the log file. The log file records the time the entry was put into the log, and the string which is the log. -
logln
-
close
public void close()Closes the log file. -
nullLog
Returns a Log that won't actually store a log. This is useful for options where the user doesn't want anything logged.
-