JBoss Log Manager 1.2.0.GA

org.jboss.logmanager.filters
Class RegexFilter

java.lang.Object
  extended by org.jboss.logmanager.filters.RegexFilter
All Implemented Interfaces:
Filter

public final class RegexFilter
extends Object
implements 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
RegexFilter(Pattern pattern)
          Create a new instance.
RegexFilter(String patternString)
          Create a new instance.
 
Method Summary
 boolean isLoggable(LogRecord record)
          Determine if this log record is loggable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexFilter

public RegexFilter(Pattern pattern)
Create a new instance.

Parameters:
pattern - the pattern to match

RegexFilter

public RegexFilter(String patternString)
Create a new instance.

Parameters:
patternString - the pattern string to match
Method Detail

isLoggable

public boolean isLoggable(LogRecord record)
Determine if this log record is loggable.

Specified by:
isLoggable in interface Filter
Parameters:
record - the log record
Returns:
true if the log record is loggable

JBoss Log Manager 1.2.0.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.