|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.botutil.Log.LogFile
Utility class to mantain a physical log file.
Field Summary | |
private String |
fileName
|
private PrintWriter |
pw
|
Constructor Summary | |
Log.LogFile(String fileName)
Opens a file and writes the log header. |
Method Summary | |
void |
addEntry(String logString)
Adds a single entry to the log. |
void |
flush()
Flushes this individual log file. |
String |
getFileName()
Returns the path this log is working on. |
void |
shutdown()
Closes this log file. |
private String |
timestamp()
Generates a timestamp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PrintWriter pw
private String fileName
Constructor Detail |
public Log.LogFile(String fileName) throws IOException
fileName
- The file path to open.
IOException
Method Detail |
public void addEntry(String logString)
logString
- The string to log.public String getFileName()
public void flush()
private String timestamp()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |