fr.ifremer.isisfish.logging
Class ThreadFilter
java.lang.Object
org.apache.log4j.spi.Filter
fr.ifremer.isisfish.logging.ThreadFilter
- All Implemented Interfaces:
- org.apache.log4j.spi.OptionHandler
public class ThreadFilter
- extends org.apache.log4j.spi.Filter
this class is Log4J filter to accept only incoming log events from a unique thread.
it retains all logEvent coming from other threads (compare with given thread name).
- Author:
- chemit
| Fields inherited from class org.apache.log4j.spi.Filter |
ACCEPT, DENY, NEUTRAL, next |
| Methods inherited from class org.apache.log4j.spi.Filter |
activateOptions, getNext, setNext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadName
protected String threadName
- the name of the only thread to accept
ThreadFilter
public ThreadFilter(String threadName)
decide
public int decide(org.apache.log4j.spi.LoggingEvent event)
- Specified by:
decide in class org.apache.log4j.spi.Filter
setThreadName
public void setThreadName(String threadName)
Copyright © 1999-2012 CodeLutin. All Rights Reserved.