@Test public void testNotATask() { MDC.remove(LOGBACK_TASK_DISCRIMINATOR_ID); assertThat(taskLogsFilter.decide(eventWithMarkerOf(null)), equalTo(DENY)); }
@Override public FilterReply decide(final ILoggingEvent event) { Marker marker = event.getMarker(); if (PROGRESS.equals(marker)) { TaskLoggerHelper.progress(toTaskLoggerEvent(event)); } if (MDC.get(LOGBACK_TASK_DISCRIMINATOR_ID) == null) { return DENY; } if (NEXUS_LOG_ONLY.equals(marker) || INTERNAL_PROGRESS.equals(marker)) { return DENY; } return NEUTRAL; }
TaskLogsFilter extends Filter<ILoggingEvent> { @Override public FilterReply decide(final ILoggingEvent event) { Marker marker = event.getMarker(); if (PROGRESS.equals(marker)) { TaskLoggerHelper.progress(toTaskLoggerEvent(event)); } if (MDC.get(LOGBACK_TASK_DISCRIMINATOR_ID) == null) { return DENY; } if (NEXUS_LOG_ONLY.equals(marker) || INTERNAL_PROGRESS.equals(marker)) { return DENY; } return NEUTRAL; } }
TaskLogsFilter extends Filter<ILoggingEvent> { @Override public FilterReply decide(final ILoggingEvent event) { Marker marker = event.getMarker(); if (PROGRESS.equals(marker)) { TaskLoggerHelper.progress(toTaskLoggerEvent(event)); } if (MDC.get(LOGBACK_TASK_DISCRIMINATOR_ID) == null) { return DENY; } if (NEXUS_LOG_ONLY.equals(marker) || INTERNAL_PROGRESS.equals(marker)) { return DENY; } return NEUTRAL; }  }
TaskLogsFilter extends Filter<ILoggingEvent> { @Override public FilterReply decide(final ILoggingEvent event) { Marker marker = event.getMarker(); if (PROGRESS.equals(marker)) { TaskLoggerHelper.progress(toTaskLoggerEvent(event)); } if (MDC.get(LOGBACK_TASK_DISCRIMINATOR_ID) == null) { return DENY; } if (NEXUS_LOG_ONLY.equals(marker) || INTERNAL_PROGRESS.equals(marker)) { return DENY; } return NEUTRAL; }  @Override FilterReply decide(final ILoggingEvent event); }
TaskLogsFilter extends Filter<ILoggingEvent> { @Override public FilterReply decide(final ILoggingEvent event) { Marker marker = event.getMarker(); if (PROGRESS.equals(marker)) { TaskLoggerHelper.progress(toTaskLoggerEvent(event)); } if (MDC.get(LOGBACK_TASK_DISCRIMINATOR_ID) == null) { return DENY; } if (NEXUS_LOG_ONLY.equals(marker) || INTERNAL_PROGRESS.equals(marker)) { return DENY; } return NEUTRAL; }  @Override FilterReply decide(final ILoggingEvent event);  }