Search in sources :

Example 1 with DefaultStdErrLoggingSystem

use of org.gradle.internal.logging.source.DefaultStdErrLoggingSystem 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);
}
Also used : JavaUtilLoggingSystem(org.gradle.internal.logging.source.JavaUtilLoggingSystem) LoggingSourceSystem(org.gradle.internal.logging.config.LoggingSourceSystem) Slf4jLoggingConfigurer(org.gradle.internal.logging.slf4j.Slf4jLoggingConfigurer) TrueTimeProvider(org.gradle.internal.time.TrueTimeProvider) TimeProvider(org.gradle.internal.time.TimeProvider) DefaultStdErrLoggingSystem(org.gradle.internal.logging.source.DefaultStdErrLoggingSystem) OutputEventRenderer(org.gradle.internal.logging.sink.OutputEventRenderer) LoggingSystemAdapter(org.gradle.internal.logging.config.LoggingSystemAdapter) DefaultStdOutLoggingSystem(org.gradle.internal.logging.source.DefaultStdOutLoggingSystem)

Aggregations

LoggingSourceSystem (org.gradle.internal.logging.config.LoggingSourceSystem)1 LoggingSystemAdapter (org.gradle.internal.logging.config.LoggingSystemAdapter)1 OutputEventRenderer (org.gradle.internal.logging.sink.OutputEventRenderer)1 Slf4jLoggingConfigurer (org.gradle.internal.logging.slf4j.Slf4jLoggingConfigurer)1 DefaultStdErrLoggingSystem (org.gradle.internal.logging.source.DefaultStdErrLoggingSystem)1 DefaultStdOutLoggingSystem (org.gradle.internal.logging.source.DefaultStdOutLoggingSystem)1 JavaUtilLoggingSystem (org.gradle.internal.logging.source.JavaUtilLoggingSystem)1 TimeProvider (org.gradle.internal.time.TimeProvider)1 TrueTimeProvider (org.gradle.internal.time.TrueTimeProvider)1