public class DefaultLogManager extends AbstractLogManager implements LogManager
NEW_LINE, OS_NEW_LINESYS_NEW_LINE| Constructor and Description |
|---|
DefaultLogManager()
Default constructor
|
| Modifier and Type | Method and 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, setLogStructuredebug, getLenName, insertInstanceValue, printInstanceValues, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLogStructure, setLogStructurepublic 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.