|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.util.Log
public class 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.
Constructor Summary | |
---|---|
protected |
Log()
|
|
Log(java.io.File file)
|
|
Log(java.io.File file,
int size,
int max_count)
|
|
Log(java.lang.String path)
|
Method Summary | |
---|---|
void |
close()
Closes the log file. |
void |
log(java.lang.String text)
Writes an entry to the log file. |
void |
logln(java.lang.String text)
|
static Log |
nullLog()
Returns a Log that won't actually store a log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log(java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public Log(java.io.File file, int size, int max_count) throws java.io.IOException
java.io.IOException
public Log(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
protected Log()
Method Detail |
---|
public void log(java.lang.String text)
public void logln(java.lang.String text)
public void close()
public static Log nullLog()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |