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

Class LevelFilter

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

  1. public class LevelFilter
  2. extends java.lang.Object
  3. implements LogRecordHeaderFilter
Implementation of the LogRecordHeaderFilter interface for filtering out records not falling into a specified Level range.

Constructor Summary

Constructor and Description
LevelFilter(int minLevel,int maxLevel)
Creates a filter instance using integer values as the level range.
LevelFilter(java.util.logging.Level minLevel,java.util.logging.Level maxLevel)
Creates a filter instance with a specified Level range.

Method Summary

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

Constructor Detail

LevelFilter

  1. public LevelFilter(int minLevel,
  2. int maxLevel)
Creates a filter instance using integer values as the level range. These level integers are as defined in the java.util.logging.Level class.
Parameters:
minLevel - lower boundary of the level range.
maxLevel - upper boundary of the level range.
See Also:
Level

LevelFilter

  1. public LevelFilter(java.util.logging.Level minLevel,
  2. java.util.logging.Level maxLevel)
Creates a filter instance with a specified Level range.
Parameters:
minLevel - lower boundary of the level range. Value null means that lower boundary won't be checked.
maxLevel - upper boundary of the level range. Value null means that upper boundary won't be checked.

Method Detail

accept

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