@Service public class LogFilter extends Object
| Constructor and Description |
|---|
LogFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allChecks(LogFile.LogEntry entry,
Date fromDate,
Date toDate,
String queryLevel,
boolean onlyLevel,
List listOfModules,
Properties nameValueMap,
String anySearch)
This method accepts the first line of the Log Record and checks
to see if it matches the query.
|
protected boolean |
dateTimeCheck(Date loggedDateTime,
Date fromDateTime,
Date toDateTime) |
protected AttributeList |
fetchRecordsUsingQuery(LogFile logFile,
long startingRecord,
boolean next,
boolean forward,
long requestedCount,
Date fromDate,
Date toDate,
String logLevel,
boolean onlyLevel,
List listOfModules,
Properties nameValueMap,
String anySearch)
Internal method that will be called from getLogRecordsUsingQuery()
|
Vector |
getInstanceLogFileNames(String instanceName) |
LogFile |
getLogFile()
This provides access to the LogFile object.
|
LogFile |
getLogFile(String fileName)
This fetches or updates logFileCache entries.
|
String |
getLogFileForGivenTarget(String targetServerName) |
AttributeList |
getLogRecordsUsingQuery(String logFileName,
Long fromRecord,
Boolean next,
Boolean forward,
Integer requestedCount,
Date fromDate,
Date toDate,
String logLevel,
Boolean onlyLevel,
List listOfModules,
Properties nameValueMap,
String anySearch)
The public method that Log Viewer Front End will be calling on.
|
AttributeList |
getLogRecordsUsingQuery(String logFileName,
Long fromRecord,
Boolean next,
Boolean forward,
Integer requestedCount,
Date fromDate,
Date toDate,
String logLevel,
Boolean onlyLevel,
List listOfModules,
Properties nameValueMap,
String anySearch,
String instanceName) |
protected boolean |
levelCheck(String loggedLevel,
String queryLevelIn,
boolean isOnlyLevelFlag) |
protected boolean |
messageDataCheck(String message,
String nvp,
String anySearch) |
protected boolean |
moduleCheck(String loggerName,
List modules) |
protected boolean |
nameValueCheck(String loggedNameValuePairs,
Properties queriedNameValueMap) |
public AttributeList getLogRecordsUsingQuery(String logFileName, Long fromRecord, Boolean next, Boolean forward, Integer requestedCount, Date fromDate, Date toDate, String logLevel, Boolean onlyLevel, List listOfModules, Properties nameValueMap, String anySearch)
logFileName - The LogFile to use to run the query. If null
the current server.log will be used. This is
not the absolute file name, just the fileName
needs to be passed. We will use the parent
directory of the previous server.log to
build the absolute file name.fromRecord - The location within the LogFilenext - True to get the next set of results, false to
get the previous setforward - True to search forward through the log filerequestedCount - The # of desired return valuesfromDate - The lower bound datetoDate - The upper bound datelogLevel - The minimum log level to displayonlyLevel - True to only display messsage for "logLevel"listOfModules - List of modules to matchnameValueMap - NVP's to matchpublic String getLogFileForGivenTarget(String targetServerName) throws IOException
IOExceptionpublic AttributeList getLogRecordsUsingQuery(String logFileName, Long fromRecord, Boolean next, Boolean forward, Integer requestedCount, Date fromDate, Date toDate, String logLevel, Boolean onlyLevel, List listOfModules, Properties nameValueMap, String anySearch, String instanceName)
protected AttributeList fetchRecordsUsingQuery(LogFile logFile, long startingRecord, boolean next, boolean forward, long requestedCount, Date fromDate, Date toDate, String logLevel, boolean onlyLevel, List listOfModules, Properties nameValueMap, String anySearch)
public LogFile getLogFile()
public LogFile getLogFile(String fileName)
protected boolean allChecks(LogFile.LogEntry entry, Date fromDate, Date toDate, String queryLevel, boolean onlyLevel, List listOfModules, Properties nameValueMap, String anySearch)
protected boolean dateTimeCheck(Date loggedDateTime, Date fromDateTime, Date toDateTime)
protected boolean levelCheck(String loggedLevel, String queryLevelIn, boolean isOnlyLevelFlag)
protected boolean nameValueCheck(String loggedNameValuePairs, Properties queriedNameValueMap)
Copyright © 2017. All rights reserved.