public static class Debug.SimpleLog extends java.lang.Object implements java.io.Serializable, RevisionHandler
Constructor and Description |
---|
SimpleLog()
default constructor, uses only stdout
|
SimpleLog(java.lang.String filename)
Creates a logger that writes into the specified file.
|
SimpleLog(java.lang.String filename,
boolean append)
Creates a logger that writes into the specified file.
|
Modifier and Type | Method and Description |
---|---|
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
|
public SimpleLog()
public SimpleLog(java.lang.String filename)
filename
- the file to write to, if null then only stdout is usedpublic 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 firstpublic java.lang.String getFilename()
public void log(java.lang.String message)
message
- the message to logpublic void logSystemInfo()
SystemInfo
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler