|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.huguesjohnson.LogFile
public class LogFile
Extremely barebone implementation of a log file. It's not really pretty because it suppresses errors but also incredibly simple to use.
| Constructor Summary | |
|---|---|
LogFile(java.lang.String fileName)
Creates a new LogFile, dumps errors to the error console. |
|
| Method Summary | |
|---|---|
void |
close()
Flushes buffer and closes the log. |
void |
log(java.lang.String line)
Appends a line to the log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFile(java.lang.String fileName)
fileName - Name & path of file to use. If the file directory doesn't exist it will be created.| Method Detail |
|---|
public void close()
public void log(java.lang.String line)
line - The line to append.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||