cz.cuni.amis.nb.pogamut.base.logging
Class LogProxy.FilterLog

Package class diagram package LogProxy.FilterLog
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.base.logging.LogProxy.FilterLog
All Implemented Interfaces:
LogRecordsSource.Filter<LogRecord>
Enclosing class:
LogProxy

protected class LogProxy.FilterLog
extends Object
implements LogRecordsSource.Filter<LogRecord>

Filter for log records. Records are filtered by their levels.


Field Summary
protected  Level level
           
 
Constructor Summary
LogProxy.FilterLog(Level level)
           
 
Method Summary
 boolean filter(LogRecord t)
          Decide if given object (usually parameter of log record) will pass through this filter.
 Level getLevel()
          Get last level that will pass through this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

protected Level level
Constructor Detail

LogProxy.FilterLog

public LogProxy.FilterLog(Level level)
Method Detail

getLevel

public Level getLevel()
Get last level that will pass through this filter.


filter

public boolean filter(LogRecord t)
Description copied from interface: LogRecordsSource.Filter
Decide if given object (usually parameter of log record) will pass through this filter.

Specified by:
filter in interface LogRecordsSource.Filter<LogRecord>
Parameters:
t - object to be filtered.
Returns:
true if object was accepted.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.