|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.web4jtools.logview.simpleview.LogFileDAO
public final class LogFileDAO
Data Access Object for log files.
This class is used both for viewing log files as plain text, and for
parsing log files into LoggerRecord
s.
Constructor Summary | |
---|---|
LogFileDAO(HttpServletRequest aRequest)
Full constructor. |
Method Summary | |
---|---|
String |
getLogFileContents(File aFile,
SimpleCriteria aCriteria)
Return the contents of a log file as a String. |
File |
getMostRecentLogFile(LogFor aLogFor)
Return the most recent log file in a given directory. |
List<LoggerRecord> |
getParsedLogFile(File aFile,
ParsedCriteria aCriteria)
Return the entire content of a log file as a List<LoggerRecord> . |
List<File> |
listAllAppLogFiles()
Return a List of all application log files. |
List<LoggerRecord> |
listFirstRecordsFor(List<File> aAllLogFiles)
Return a List containing the first LoggerRecord in each
of the given log files. |
static void |
readConfig(ServletConfig aConfig)
Read in config from web.xml. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogFileDAO(HttpServletRequest aRequest)
Method Detail |
---|
public static void readConfig(ServletConfig aConfig)
public File getMostRecentLogFile(LogFor aLogFor) throws DAOException
DAOException
public String getLogFileContents(File aFile, SimpleCriteria aCriteria) throws DAOException
If the given criteria desire only a section of the file, then only the first or last section is returned; otherwise, the contents of the entire file is returned.
DAOException
public List<LoggerRecord> getParsedLogFile(File aFile, ParsedCriteria aCriteria) throws DAOException
List<LoggerRecord>
.
DAOException
public List<File> listAllAppLogFiles()
public List<LoggerRecord> listFirstRecordsFor(List<File> aAllLogFiles) throws DAOException
LoggerRecord
in each
of the given log files. This method is used when calculating down times from logs.
DAOException
|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |