public void execute(ExecutionListener executionListener) { LoggingManagerInternal loggingManager = loggingServices.getFactory(LoggingManagerInternal.class).create(); loggingManager.setLevel(loggingConfiguration.getLogLevel()); loggingManager.colorStdOutAndStdErr(loggingConfiguration.isColorOutput()); loggingManager.start(); action.execute(executionListener); }
public void configure(ProviderConnectionParameters parameters) { LogLevel providerLogLevel = parameters.getVerboseLogging() ? LogLevel.DEBUG : LogLevel.INFO; LOGGER.debug("Configuring logging to level: {}", providerLogLevel); LoggingManagerInternal loggingManager = loggingServices.newInstance(LoggingManagerInternal.class); loggingManager.setLevel(providerLogLevel); loggingManager.start(); }