org.jscience.util.logging
Class LevelFilter

java.lang.Object
  extended by org.jscience.util.logging.LevelFilter
All Implemented Interfaces:
Filter<LogEntry>

public class LevelFilter
extends java.lang.Object
implements Filter<LogEntry>

filters LogEntry objects by their level using the natural order of Level objects

See Also:
Level

Field Summary
static Filter<LogEntry> MORE_THAN_FINE_LEVEL_FILTER
          accepts LogEntry objects that compare to more than the FINE level.
static Filter<LogEntry> NO_FINE_LEVEL_FILTER
          accepts LogEntry objects that exclude the levels FINE, FINER, FINEST.
 
Constructor Summary
LevelFilter(Level minLevel)
          Creates a new LevelFilter object.
 
Method Summary
 boolean accept(LogEntry entry)
          returns true only if the Level of the entry is equal or comes after the configured Level of this filter.
 Level getMinLevel()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_FINE_LEVEL_FILTER

public static final Filter<LogEntry> NO_FINE_LEVEL_FILTER
accepts LogEntry objects that exclude the levels FINE, FINER, FINEST.


MORE_THAN_FINE_LEVEL_FILTER

public static final Filter<LogEntry> MORE_THAN_FINE_LEVEL_FILTER
accepts LogEntry objects that compare to more than the FINE level.

Constructor Detail

LevelFilter

public LevelFilter(Level minLevel)
Creates a new LevelFilter object.

Parameters:
minLevel - DOCUMENT ME!
Method Detail

getMinLevel

public Level getMinLevel()
DOCUMENT ME!

Returns:
DOCUMENT ME!

accept

public boolean accept(LogEntry entry)
returns true only if the Level of the entry is equal or comes after the configured Level of this filter.

Specified by:
accept in interface Filter<LogEntry>
Parameters:
entry - DOCUMENT ME!
Returns:
DOCUMENT ME!