1 package hu.user.mediacube.integration.safedelete.logging;
3 import ch.qos.logback.classic.spi.ILoggingEvent;
4 import ch.qos.logback.core.filter.AbstractMatcherFilter;
5 import ch.qos.logback.core.spi.FilterReply;
6 import org.apache.logging.log4j.Marker;
7 import org.apache.logging.log4j.MarkerManager;
10 * @author yoshiori_shoji
12 public class MarkerFilter extends AbstractMatcherFilter<ILoggingEvent> {
19 * @see ch.qos.logback.core.filter.Filter#decide(java.lang.Object)
22 public FilterReply decide(ILoggingEvent event) {
24 return FilterReply.NEUTRAL;
26 org.slf4j.Marker marker = event.getMarker();
31 if (markerToMatch.toString().equals(marker.toString())) {
39 * The marker to match in the event.
41 * @param markerToMatch
43 public void setMarker(String markerStr) {
44 markerToMatch = MarkerManager.getMarker(markerStr);
50 * @see ch.qos.logback.core.filter.Filter#start()
54 if (this.markerToMatch != null) {