org.apache.log4j.Logger.getRootLogger().setLevel(logLevel);
org.apache.log4j.Logger.getLogger(Main.class.getPackage().getName()).setLevel(logLevel);
PluginLoader pluginLoader = new PluginLoader(new File(configuration.getPluginDir()));
List<PluginModule> pluginModules = Lists.newArrayList();
for (Plugin plugin : pluginLoader.loadPlugins())
pluginModules.addAll(plugin.modules());
LOG.debug("Loaded modules: " + pluginModules);
final Injector injector = setupInjector(configuration, pluginModules);