@Test public void testIgnoredLoggerCategories() { final TsdrLogCollector tsdrLogCollector = new TsdrLogCollector(tsdrLogCollectorLogger, new TsdrLogCollectorConfig(FILE_NAME)); assertTrue(tsdrLogCollector.isIgnored("org.opendaylight.tsdr.test")); assertFalse(tsdrLogCollector.isIgnored("org.opendaylight.test.test")); }
@VisibleForTesting boolean isIgnored(String loggerName) { if (loggerName == null) { return true; } return logCollectorConfig.getIgnoredCategories() .stream().anyMatch(category -> category.matcher(loggerName).matches()); }
TsdrLogCollector implements PaxAppender { @VisibleForTesting boolean isIgnored(String loggerName) { if (loggerName == null) { return true; } return logCollectorConfig.getIgnoredCategories() .stream().anyMatch(category -> category.matcher(loggerName).matches()); } }
TsdrLogCollector implements PaxAppender { @VisibleForTesting boolean isIgnored(String loggerName) { if (loggerName == null) { return true; } return logCollectorConfig.getIgnoredCategories() .stream().anyMatch(category -> category.matcher(loggerName).matches()); } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); }
TsdrLogCollector implements PaxAppender { @VisibleForTesting boolean isIgnored(String loggerName) { if (loggerName == null) { return true; } return logCollectorConfig.getIgnoredCategories() .stream().anyMatch(category -> category.matcher(loggerName).matches()); } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); void doAppend(PaxLoggingEvent event); }
TsdrLogCollector implements PaxAppender { @VisibleForTesting boolean isIgnored(String loggerName) { if (loggerName == null) { return true; } return logCollectorConfig.getIgnoredCategories() .stream().anyMatch(category -> category.matcher(loggerName).matches()); } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); void doAppend(PaxLoggingEvent event);  }