net.sourceforge.acelogger.level.filter
Class GreaterOrEqualLevelFilter

java.lang.Object
  extended by net.sourceforge.acelogger.level.filter.BaseLevelFilter
      extended by net.sourceforge.acelogger.level.filter.GreaterOrEqualLevelFilter
All Implemented Interfaces:
Identifiable, LevelFilter

public class GreaterOrEqualLevelFilter
extends BaseLevelFilter

A filter that matches levels greater or equal the supplied one.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
GreaterOrEqualLevelFilter(String identifier)
          Constructs a new filter that matches levels greater or equal the supplied one.
GreaterOrEqualLevelFilter(String identifier, LogLevel minimumLevel)
          Constructs a new filter that matches levels greater or equal the supplied one.
 
Method Summary
 LogLevel getMinimumLevel()
          Gets the minimum level of this filter.
 boolean isSuitable(LogLevel level)
          Verifies if a log level is suitable for a determined logger.
 void setMinimumLevel(LogLevel minimumLevel)
          Sets the minimum level of this filter.
 
Methods inherited from class net.sourceforge.acelogger.level.filter.BaseLevelFilter
getIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreaterOrEqualLevelFilter

public GreaterOrEqualLevelFilter(String identifier)
Constructs a new filter that matches levels greater or equal the supplied one. The level used is the one defined by LevelFilterConstants.DEFAULT_LEVEL.

Parameters:
identifier - The name of this filter.
Since:
1.0.0

GreaterOrEqualLevelFilter

public GreaterOrEqualLevelFilter(String identifier,
                                 LogLevel minimumLevel)
Constructs a new filter that matches levels greater or equal the supplied one.

Parameters:
identifier - The name of this filter.
minimumLevel - The desired level for this filter.
Since:
1.0.0
Method Detail

getMinimumLevel

public final LogLevel getMinimumLevel()
Gets the minimum level of this filter.

Returns:
The minimum level.
Since:
1.0.0

setMinimumLevel

public final void setMinimumLevel(LogLevel minimumLevel)
Sets the minimum level of this filter.

Parameters:
minimumLevel - the minimum level to set.
Since:
1.0.0

isSuitable

public boolean isSuitable(LogLevel level)
Verifies if a log level is suitable for a determined logger.

Parameters:
level - The log level to test.
Returns:
True if the logger accepts this level; False otherwise.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.