use of org.apache.druid.server.log.EmittingRequestLogger in project druid by druid-io.
the class QueryableModuleTest method testGetEmitterRequestLoggerProvider.
@Test
public void testGetEmitterRequestLoggerProvider() {
Properties properties = new Properties();
properties.setProperty("druid.request.logging.type", "emitter");
properties.setProperty("druid.request.logging.feed", "requestlog");
final Injector injector = makeInjector(properties);
RequestLoggerProvider emittingRequestLoggerProvider = injector.getInstance(RequestLoggerProvider.class);
Assert.assertTrue(emittingRequestLoggerProvider instanceof EmittingRequestLoggerProvider);
RequestLogger requestLogger = emittingRequestLoggerProvider.get();
Assert.assertTrue(requestLogger instanceof EmittingRequestLogger);
}
Aggregations