private void filterLogEvent ( final LogEvent logEvent ) { for ( ILogEventFilter filter : this . filters ) { // do nothing if one of the filters doesn't accept the event if ( ! filter . acceptEvent ( logEvent ) ) { return ; } } // if all the filters accepted the event, signal the creation // of the event logEventCreated ( logEvent ) ; }
This method is invoked every time a new log event is created . It filters out unwanted events .