// Configure logback and java util logging, and capture stdout and stderr
LoggingSystem stdout = new DefaultStdOutLoggingSystem(getStdoutListener(), get(TimeProvider.class));
LoggingSystem stderr = new DefaultStdErrLoggingSystem(new TextStreamOutputEventListener(get(OutputEventListener.class)), get(TimeProvider.class));
return new DefaultLoggingManagerFactory(
new DefaultLoggingConfigurer(renderer,
new LogbackLoggingConfigurer(renderer),
new JavaUtilLoggingConfigurer()),
renderer,
stdout,
stderr);
}