@@ -0,0 +1,1323 @@
+package no.cantara.jau.eventextraction;%0A%0Aimport ch.qos.logback.classic.Level;%0Aimport ch.qos.logback.classic.spi.ILoggingEvent;%0Aimport ch.qos.logback.core.filter.AbstractMatcherFilter;%0Aimport ch.qos.logback.core.spi.FilterReply;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport java.util.Set;%0A%0Apublic class MDCEventsFilter extends AbstractMatcherFilter%3CILoggingEvent%3E %7B%0A    private static final Logger log = LoggerFactory.getLogger(MDCEventsFilter.class);%0A    private String mdcEventsToMatch = null;%0A    @Override%0A    public void start() %7B%0A        if (null != this.mdcEventsToMatch)%0A            super.start();%0A        else%0A            addError(%22No MDC events to match to yet.%22);%0A    %7D%0A    @Override%0A    public FilterReply decide(ILoggingEvent event) %7B%0A        if (event.getLevel() == Level.ERROR) %7B%0A            return onMatch;%0A        %7D%0A%0A        log.info(%22Events to match: %22 + mdcEventsToMatch);%0A        Set%3CString%3E mdcKeys = event.getMDCPropertyMap().keySet();%0A%0A        for (String mdc : mdcKeys) %7B%0A            if (mdcEventsToMatch.contains(mdc)) %7B%0A                log.info(%22A match!!%22);%0A                return onMatch;%0A            %7D%0A        %7D%0A        return onMismatch;%0A    %7D%0A    public void setMdcEvents(String markerStr) %7B%0A        if(null != markerStr)%0A            mdcEventsToMatch = markerStr;%0A    %7D%0A%0A%7D%0A

Add log filter for filtering events based on MDC