Class LoggerNameFilter
java.lang.Object
com.ibm.websphere.logging.hpel.reader.filters.LoggerNameFilter
- All Implemented Interfaces:
LogRecordFilter
Implementation of the
LogRecordFilter
interface for filtering out
records not written by a logger with a matching name.-
Constructor Summary
ConstructorsConstructorDescriptionLoggerNameFilter
(String namePattern) Creates a filter instance for matching logger names using a specified regular expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(RepositoryLogRecord record) Checks if record should be accepted into the list.
-
Constructor Details
-
LoggerNameFilter
Creates a filter instance for matching logger names using a specified regular expression.- Parameters:
namePattern
- regular expressionPattern
that each record's logger name will be compared to
-
-
Method Details
-
accept
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.
-