import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;
-/**
- * @author yoshiori_shoji
- */
public class MarkerFilter extends AbstractMatcherFilter<ILoggingEvent> {
Marker markerToMatch;
- /*
- * (non-Javadoc)
- *
- * @see ch.qos.logback.core.filter.Filter#decide(java.lang.Object)
- */
@Override
public FilterReply decide(ILoggingEvent event) {
if (!isStarted()) {
}
}
- /**
- * The marker to match in the event.
- *
- * @param markerToMatch
- */
public void setMarker(String markerStr) {
markerToMatch = MarkerManager.getMarker(markerStr);
}
- /*
- * (non-Javadoc)
- *
- * @see ch.qos.logback.core.filter.Filter#start()
- */
@Override
public void start() {
if (this.markerToMatch != null) {