use of org.gradle.internal.logging.sink.OutputEventRenderer in project gradle by gradle.
the class OutputEventListenerBackedLoggerContext method reset.
public void reset() {
setLevel(DEFAULT_LOG_LEVEL);
OutputEventRenderer renderer = new OutputEventRenderer();
renderer.addStandardOutputListener(defaultOutputStream);
renderer.addStandardErrorListener(defaultErrorStream);
setOutputEventListener(renderer);
}
use of org.gradle.internal.logging.sink.OutputEventRenderer in project gradle by gradle.
the class LoggingServiceRegistry method createLoggingManagerFactory.
protected DefaultLoggingManagerFactory createLoggingManagerFactory() {
OutputEventRenderer renderer = get(OutputEventRenderer.class);
LoggingSourceSystem stdout = new DefaultStdOutLoggingSystem(getStdoutListener(), get(TimeProvider.class));
stdout.setLevel(LogLevel.QUIET);
LoggingSourceSystem stderr = new DefaultStdErrLoggingSystem(new TextStreamOutputEventListener(get(OutputEventListener.class)), get(TimeProvider.class));
stderr.setLevel(LogLevel.ERROR);
return new DefaultLoggingManagerFactory(renderer, new LoggingSystemAdapter(new Slf4jLoggingConfigurer(renderer)), new JavaUtilLoggingSystem(), stdout, stderr);
}
Aggregations