Package org.jboss.logmanager.filters
Class RegexFilter
- java.lang.Object
-
- org.jboss.logmanager.filters.RegexFilter
-
- All Implemented Interfaces:
java.util.logging.Filter
public final class RegexFilter extends java.lang.Object implements java.util.logging.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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Pattern
pattern
-
Constructor Summary
Constructors Constructor Description RegexFilter(java.lang.String patternString)
Create a new instance.RegexFilter(java.util.regex.Pattern pattern)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoggable(java.util.logging.LogRecord record)
Determine if this log record is loggable.
-