org.aitools.programd.logging
Class BotIDFilter

java.lang.Object
  extended by org.apache.log4j.spi.Filter
      extended by org.aitools.programd.logging.BotIDFilter
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

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

Accepts a ChatLogEvent if it comes from a specific bot id; denies it otherwise.

Since:
4.6
Author:
Noel Bush

Field Summary
private  java.lang.String botid
           
 
Fields inherited from class org.apache.log4j.spi.Filter
ACCEPT, DENY, NEUTRAL, next
 
Constructor Summary
BotIDFilter()
           
 
Method Summary
 int decide(org.apache.log4j.spi.LoggingEvent event)
           
 void setBotID(java.lang.String id)
           
 
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
 

Field Detail

botid

private java.lang.String botid
Constructor Detail

BotIDFilter

public BotIDFilter()
Method Detail

decide

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

setBotID

public void setBotID(java.lang.String id)