class MasterLogFilter extends Filter<ILoggingEvent> {

    @Override
    public FilterReply decide(ILoggingEvent event) {
        if (event.getThreadName().startsWith("Master-") ){
            return FilterReply.ACCEPT;
        }
        return FilterReply.DENY;
    }

}