@ Override public FilterReply decide ( ILoggingEvent event ) { LoggerContext loggerFactory = ( LoggerContext ) LoggerFactory . getILoggerFactory ( ) ; Logger logger = loggerFactory . getLogger ( event . getLoggerName ( ) ) ; if ( event . getLevel ( ) . isGreaterOrEqual ( logger . getEffectiveLevel ( ) ) ) return FilterReply . NEUTRAL ; return FilterReply . DENY ; }
Checks the log level of the event against the effective log level of the Logger referenced in the event .