com.ibm.websphere.logging.hpel.reader.filters

Class LogViewerFilter

  1. java.lang.Object
  2. extended bycom.ibm.websphere.logging.hpel.reader.filters.LogViewerFilter
All implemented interfaces:
LogRecordFilter

  1. public class LogViewerFilter
  2. extends java.lang.Object
  3. implements LogRecordFilter
Implementation of the LogRecordFilter interface using multiple parameters to filter log records.

Nested Class Summary

Modifier and Type Class and Description
  1. static class
LogViewerFilter.Extension

Constructor Summary

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

Modifier and Type Method and Description
  1. boolean
accept(RepositoryLogRecord record)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

LogViewerFilter

  1. public LogViewerFilter(java.util.Date startDate,
  2. java.util.Date stopDate,
  3. java.util.logging.Level minLevel,
  4. java.util.logging.Level maxLevel,
  5. java.lang.String includeLoggers,
  6. java.lang.String excludeLoggers,
  7. java.lang.String threadID,
  8. java.lang.String message,
  9. java.util.List<LogViewerFilter.Extension> extensions)
Creates instance to filter on time range, level range, lists of included/excluded loggers, and thread ID. A null value can be supplied for any of the parameters that you do not wish to filter on.
Parameters:
startDate - minimum Date value that will be accepted by the filter
stopDate - maximum Date value that will be accepted by the filter
minLevel - minimum Level that will be accepted by the filter
maxLevel - maximum Level that will be accepted by the filter
includeLoggers - 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 filter
message - message string to match in the message of a record

Method Detail

accept

  1. public boolean accept(RepositoryLogRecord record)
Description copied from interface: LogRecordFilter
Checks if record should be accepted into the list.
Specified by:
accept in interface LogRecordFilter
Parameters:
record - log record to check
Returns:
true if record should be included in the list; false otherwise.