net.sf.panoptes.module.log4j
Class LogFilter

java.lang.Object
  |
  +--net.sf.panoptes.module.log4j.LogFilter
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class LogFilter
extends java.lang.Object
implements org.apache.commons.collections.Predicate

Author:
Dag Liodden version 0.1

Constructor Summary
LogFilter(java.lang.String host, java.lang.String prefix, org.apache.log4j.Level level)
           
 
Method Summary
 boolean evaluate(java.lang.Object input)
           
 java.lang.String getHost()
           
 org.apache.log4j.Level getLevel()
           
 java.lang.String getPrefix()
           
 void setLevel(org.apache.log4j.Level level)
           
 void setPrefix(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFilter

public LogFilter(java.lang.String host,
                 java.lang.String prefix,
                 org.apache.log4j.Level level)
Method Detail

evaluate

public boolean evaluate(java.lang.Object input)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

getHost

public java.lang.String getHost()
Returns:

getPrefix

public java.lang.String getPrefix()
Returns:

getLevel

public org.apache.log4j.Level getLevel()
Returns:

setLevel

public void setLevel(org.apache.log4j.Level level)
Parameters:
level -

setPrefix

public void setPrefix(java.lang.String string)
Parameters:
string -


Copyright © 2003 . All Rights Reserved.