|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.matthias_burbach.mosaique.core.util.LineBufferLog
Is a log implementation which keeps lines buffered in an internal memory buffer until they are requested to be written to a file.
Field Summary |
Fields inherited from interface de.matthias_burbach.mosaique.core.util.Log |
SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARNING |
Constructor Summary | |
LineBufferLog()
|
Method Summary | |
void |
log(java.lang.String severity,
java.lang.String message)
|
void |
writeToFile(java.lang.String fileName)
Writes the lines logged so far to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LineBufferLog()
Method Detail |
public void log(java.lang.String severity, java.lang.String message)
log
in interface Log
severity
- One of Log.SEVERITY_INFO
, Log.SEVERITY_WARNING
,
Log.SEVERITY_ERROR
.message
- The message to log.public void writeToFile(java.lang.String fileName)
fileName
- The absolute path and name of the file to write to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |