public class LogViewerFilter extends java.lang.Object implements LogRecordFilter
LogRecordFilter
interface using multiple
parameters to filter log records.Modifier and Type | Class and Description |
---|---|
static class |
LogViewerFilter.Extension |
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.lang.String excludeMessages,
java.util.List<LogViewerFilter.Extension> extensions)
Creates instance to filter on time range, level range, lists of
included/excluded loggers, list of excluded messages, and thread ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(RepositoryLogRecord record)
Checks if record should be accepted into the list.
|
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.lang.String excludeMessages, java.util.List<LogViewerFilter.Extension> extensions)
null
value can be supplied for any of the parameters that
you do not wish to filter on.startDate
- minimum Date
value that will be accepted by
the filterstopDate
- maximum Date
value that will be accepted by
the filterminLevel
- minimum Level
that will be accepted by the
filtermaxLevel
- maximum Level
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. The
wildcard character '*' may be used.excludeMessages
- comma separated list of messages that will be
rejected by the filter. The wildcard character '*' may be used.extensions
- comma separated list of records with specified extension
name and value that will be accepted by the filter. The wildcard
characters '*' or '?' may be used.public boolean accept(RepositoryLogRecord record)
LogRecordFilter
accept
in interface LogRecordFilter
record
- log record to checktrue
if record should be included in the list;
false
otherwise.