com.ibm.websphere.logging.hpel.reader.filters
Class LogViewerFilter
- java.lang.Object
-
- com.ibm.websphere.logging.hpel.reader.filters.LogViewerFilter
-
- All Implemented Interfaces:
- LogRecordFilter
public class LogViewerFilter extends java.lang.Object implements LogRecordFilter
Implementation of theLogRecordFilter
interface using multiple parameters to filter log records.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
LogViewerFilter.Extension
-
Constructor Summary
Constructors Constructor and Description LogViewerFilter(java.util.Date startDate, java.util.Date stopDate, java.util.logging.Level minLevel, java.util.logging.Level maxLevel, java.lang.String includeLoggers, java.lang.String excludeLoggers, java.lang.String threadID, java.lang.String message, java.util.List<LogViewerFilter.Extension> extensions)
Creates instance to filter on time range, level range, lists of included/excluded loggers, and thread ID.
-
Method Summary
Methods Modifier and Type Method and Description boolean
accept(RepositoryLogRecord record)
Checks if record should be accepted into the list.
-
-
-
Constructor Detail
-
LogViewerFilter
public LogViewerFilter(java.util.Date startDate, java.util.Date stopDate, java.util.logging.Level minLevel, java.util.logging.Level maxLevel, java.lang.String includeLoggers, java.lang.String excludeLoggers, java.lang.String threadID, java.lang.String message, java.util.List<LogViewerFilter.Extension> extensions)
Creates instance to filter on time range, level range, lists of included/excluded loggers, and thread ID. Anull
value can be supplied for any of the parameters that you do not wish to filter on.- Parameters:
startDate
- minimumDate
value that will be accepted by the filterstopDate
- maximumDate
value that will be accepted by the filterminLevel
- minimumLevel
that will be accepted by the filtermaxLevel
- maximumLevel
that will be accepted by the filterincludeLoggers
- comma separated list of loggers that will be accepted by the filter. The wildcard character '*' may be used.excludeLoggers
- comma separated list of loggers that will be rejected by the filter. The wildcard character '*' may be used.threadID
- ID of the thread that will be accepted by the filtermessage
- message string to match in the message of a record
-
-
Method Detail
-
accept
public boolean accept(RepositoryLogRecord record)
Description copied from interface:LogRecordFilter
Checks if record should be accepted into the list.- Specified by:
accept
in interfaceLogRecordFilter
- Parameters:
record
- log record to check- Returns:
true
if record should be included in the list;false
otherwise.
-
-