fitgoodies-logging-log4j/src/main/java/de/cologneintelligence/fitgoodies/log4j/AbstractLoggingEventMatcher.java
public final LoggingEvent getFirstMatchingEvent(final LoggingEvent[] events,
	                                                final Map<String, String> parameters) {

		for (LoggingEvent event : events) {
			if (matchesParameters(event, parameters) && matches(event)) {
				return event;
			}
		}
		return null;
	}
public final LoggingEvent getFirstMatchingEvent(final LoggingEvent[] events,
	                                                final Map<String, String> parameters) {

		for (LoggingEvent event : events) {
			if (matchesParameters(event, parameters) && matches(event)) {
				return event;
			}
		}
		return null;
	}
Gets the first matching event which matches {@link #matches(LoggingEvent)}
and the given parameters.

@param events     log entries to process
@param parameters filter parameters
@return first matching log entry or {@code null} otherwise