Serializable, LogManagerpublic class MemoLogManager extends AbstractLogManager implements LogManager
SYS_NEW_LINENEW_LINE, OS_NEW_LINE| Constructor | Description |
|---|---|
MemoLogManager() |
Default constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRecord(LogRecord record) |
Adds the given log record to this log manger without any verification if
the record is already contained in this manager
|
void |
closeLog() |
|
LogRecord |
fetchRecord(Object ob) |
Gets the record contained in this monitor with the given key
|
Collection<LogRecord> |
getRecords() |
Gets the set of log records maintained in this monitor
|
void |
writeReports(String filepath) |
Writes the reports contained in this monitor to the file
|
getLogStructure, setLogStructuregetLogStructure, setLogStructureclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic void addRecord(LogRecord record)
addRecord in interface LogManagerpublic Collection<LogRecord> getRecords()
getRecords in interface LogManagerpublic LogRecord fetchRecord(Object ob)
fetchRecord in interface LogManagerob - the key of log record to be fetched from this monitorpublic void writeReports(String filepath)
writeReports in interface LogManagerfilepath - the path of the files where the records are to be writtenpublic void closeLog()
throws IOException
closeLog in interface LogManagerIOExceptionCopyright © 2019 SMYLD. All rights reserved.