org.jboss.logmanager.log4j.filters
Class Log4jFilter

java.lang.Object
  extended by org.jboss.logmanager.log4j.filters.Log4jFilter
All Implemented Interfaces:
java.util.logging.Filter

public final class Log4jFilter
extends java.lang.Object
implements java.util.logging.Filter

A bridge filter to a log4j filter chain.


Constructor Summary
Log4jFilter(org.apache.log4j.spi.Filter filterChain, boolean defaultResult)
          Construct a new instance.
 
Method Summary
 boolean isLoggable(java.util.logging.LogRecord record)
          Determine if the record is loggable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jFilter

public Log4jFilter(org.apache.log4j.spi.Filter filterChain,
                   boolean defaultResult)
Construct a new instance.

Parameters:
filterChain - the log4j filter chain
defaultResult - the result to use if the filter chain returns Filter.NEUTRAL
Method Detail

isLoggable

public boolean isLoggable(java.util.logging.LogRecord record)
Determine if the record is loggable.

Specified by:
isLoggable in interface java.util.logging.Filter
Parameters:
record - the log record
Returns:
true if it is loggable


Copyright © 2009. All Rights Reserved.