Search in sources :

Example 1 with MuteFilter

use of com.yahoo.logserver.filter.MuteFilter in project vespa by vespa-engine.

the class LogFilterManagerTestCase method testSystemFilters.

@Test
public void testSystemFilters() {
    LogFilter f;
    f = LogFilterManager.getLogFilter("system.allevents");
    assertNotNull(f);
    assertTrue(f instanceof LevelFilter);
    f = LogFilterManager.getLogFilter("system.metricsevents");
    assertNotNull(f);
    assertTrue(f instanceof MetricsFilter);
    f = LogFilterManager.getLogFilter("system.nometricsevents");
    assertNotNull(f);
    assertTrue(f instanceof NoMetricsFilter);
    f = LogFilterManager.getLogFilter("system.all");
    assertNotNull(f);
    assertTrue(f instanceof NullFilter);
    f = LogFilterManager.getLogFilter("system.mute");
    assertNotNull(f);
    assertTrue(f instanceof MuteFilter);
    assertTrue(f == MuteFilter.getInstance());
}
Also used : LevelFilter(com.yahoo.logserver.filter.LevelFilter) NoMetricsFilter(com.yahoo.logserver.filter.NoMetricsFilter) MuteFilter(com.yahoo.logserver.filter.MuteFilter) NullFilter(com.yahoo.logserver.filter.NullFilter) LogFilter(com.yahoo.logserver.filter.LogFilter) MetricsFilter(com.yahoo.logserver.filter.MetricsFilter) NoMetricsFilter(com.yahoo.logserver.filter.NoMetricsFilter)

Aggregations

LevelFilter (com.yahoo.logserver.filter.LevelFilter)1 LogFilter (com.yahoo.logserver.filter.LogFilter)1 MetricsFilter (com.yahoo.logserver.filter.MetricsFilter)1 MuteFilter (com.yahoo.logserver.filter.MuteFilter)1 NoMetricsFilter (com.yahoo.logserver.filter.NoMetricsFilter)1 NullFilter (com.yahoo.logserver.filter.NullFilter)1