org.jboss.logging.filter
Class TCLFilter

java.lang.Object
  extended by org.apache.log4j.spi.Filter
      extended by org.jboss.logging.filter.TCLFilter
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class TCLFilter
extends org.apache.log4j.spi.Filter

An appender filter that accepts log events based on whether the thread context class loader has a classpath URL that has the DeployURL attribute as a substring. A sample usage would be:

Version:
$Revison:$
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.apache.log4j.spi.Filter
ACCEPT, DENY, NEUTRAL, next
 
Constructor Summary
TCLFilter()
           
 
Method Summary
 int decide(org.apache.log4j.spi.LoggingEvent event)
           
 String getDeployURL()
           
 boolean isAcceptOnMatch()
           
 void setAcceptOnMatch(boolean acceptOnMatch)
           
 void setDeployURL(String deployURL)
           
 
Methods inherited from class org.apache.log4j.spi.Filter
activateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCLFilter

public TCLFilter()
Method Detail

isAcceptOnMatch

public boolean isAcceptOnMatch()

setAcceptOnMatch

public void setAcceptOnMatch(boolean acceptOnMatch)

getDeployURL

public String getDeployURL()

setDeployURL

public void setDeployURL(String deployURL)

decide

public int decide(org.apache.log4j.spi.LoggingEvent event)
Specified by:
decide in class org.apache.log4j.spi.Filter


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.