org.jboss.logmanager.log4j.filters
Class Log4jFilter
java.lang.Object
org.jboss.logmanager.log4j.filters.Log4jFilter
- All Implemented Interfaces:
- Filter
public final class Log4jFilter
- extends Object
- implements Filter
A bridge filter to a log4j filter chain.
|
Constructor Summary |
Log4jFilter(org.apache.log4j.spi.Filter filterChain,
boolean defaultResult)
Construct a new instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jFilter
public Log4jFilter(org.apache.log4j.spi.Filter filterChain,
boolean defaultResult)
- Construct a new instance.
- Parameters:
filterChain - the log4j filter chaindefaultResult - the result to use if the filter chain returns Filter.NEUTRAL
isLoggable
public boolean isLoggable(LogRecord record)
- Determine if the record is loggable.
- Specified by:
isLoggable in interface Filter
- Parameters:
record - the log record
- Returns:
true if it is loggable
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.