package ch.qos.logback.classic.filter; import ch.qos.logback.core.spi.FilterReply; import ch.qos.logback.classic.spi.LoggingEvent; /** * A {@link LevelFilter} class that allows any levels greater or equal to the configured level through. * * @author brunon * @version $$Revision: #1 $$, $$DateTime: 2008/09/25 16:02:26 $$ * @since Sep 25, 2008 */ public class MinLevelFilter extends LevelFilter { @Override public FilterReply decide( Object eventObject ) { if ( !isStarted() ) { return FilterReply.NEUTRAL; } LoggingEvent event = ( LoggingEvent ) eventObject; if ( event.getLevel().isGreaterOrEqual( level ) ) { return onMatch; } else { return onMismatch; } } }