use of org.apache.druid.server.log.RequestLogger in project druid by druid-io.
the class QueryableModuleTest method testGetDefaultRequestLoggerProvider.
@Test
public void testGetDefaultRequestLoggerProvider() {
Properties properties = new Properties();
final Injector injector = makeInjector(properties);
RequestLoggerProvider emittingRequestLoggerProvider = injector.getInstance(RequestLoggerProvider.class);
Assert.assertTrue(emittingRequestLoggerProvider instanceof NoopRequestLoggerProvider);
RequestLogger requestLogger = emittingRequestLoggerProvider.get();
Assert.assertTrue(requestLogger instanceof NoopRequestLogger);
}
use of org.apache.druid.server.log.RequestLogger 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