public void log ( final LogEntry entry ) { if ( entry . getLevel ( ) . compareTo ( this . level ) < 0 ) { return ; } if ( ! this . filters . isEmpty ( ) ) { for ( LogFilter filter : this . filters ) { if ( ! filter . accept ( entry ) ) { return ; } } } this . publish ( entry ) ; }
Checks if the LogLevel is higher than the set LogLevel and all registered Filters pass and then publishes the LogEntry