|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.Debug.SimpleLog
public static class Debug.SimpleLog
A little, simple helper class for logging stuff. Uses simple file access and not the java.util.logging stuff (see Log for that). Uses the writeToFile methods of the Debug class.
Debug.Log,
Debug.writeToFile(String, String),
Debug.writeToFile(String, String, boolean),
Serialized Form| Constructor Summary | |
|---|---|
Debug.SimpleLog()
default constructor, uses only stdout |
|
Debug.SimpleLog(java.lang.String filename)
Creates a logger that writes into the specified file. |
|
Debug.SimpleLog(java.lang.String filename,
boolean append)
Creates a logger that writes into the specified file. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFilename()
returns the filename of the log, can be null |
java.lang.String |
getRevision()
Returns the revision string. |
void |
log(java.lang.String message)
logs the given message to the file |
void |
logSystemInfo()
a convenience method for dumping the current system info in the log file |
java.lang.String |
toString()
returns a string representation of the logger |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Debug.SimpleLog()
public Debug.SimpleLog(java.lang.String filename)
filename - the file to write to, if null then only stdout is used
public Debug.SimpleLog(java.lang.String filename,
boolean append)
filename - the file to write to, if null then only stdout is usedappend - if false, the file will be deleted first| Method Detail |
|---|
public java.lang.String getFilename()
public void log(java.lang.String message)
message - the message to logpublic void logSystemInfo()
SystemInfopublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||