Package org.jboss.logmanager.filters
Class RegexFilter
java.lang.Object
org.jboss.logmanager.filters.RegexFilter
- All Implemented Interfaces:
Filter
A regular-expression-based filter. Used to exclude log records which match or don't match the expression. The
regular expression is checked against the raw (unformatted) message.
-
Constructor Summary
ConstructorsConstructorDescriptionRegexFilter
(String patternString) Create a new instance.RegexFilter
(Pattern pattern) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLoggable
(LogRecord record) Determine if this log record is loggable.
-
Constructor Details
-
RegexFilter
Create a new instance.- Parameters:
pattern
- the pattern to match
-
RegexFilter
Create a new instance.- Parameters:
patternString
- the pattern string to match
-
-
Method Details
-
isLoggable
Determine if this log record is loggable.- Specified by:
isLoggable
in interfaceFilter
- Parameters:
record
- the log record- Returns:
true
if the log record is loggable
-