Search in sources :

Example 1 with StreamingStyledTextOutput

use of org.gradle.internal.logging.text.StreamingStyledTextOutput in project gradle by gradle.

the class TextReportRenderer method setOutputFile.

@Override
public void setOutputFile(File file) throws IOException {
    cleanupWriter();
    setWriter(new StreamingStyledTextOutput(new BufferedWriter(new FileWriter(file))), true);
}
Also used : FileWriter(java.io.FileWriter) StreamingStyledTextOutput(org.gradle.internal.logging.text.StreamingStyledTextOutput) BufferedWriter(java.io.BufferedWriter)

Example 2 with StreamingStyledTextOutput

use of org.gradle.internal.logging.text.StreamingStyledTextOutput in project gradle by gradle.

the class OutputEventRenderer method addPlainConsole.

private OutputEventRenderer addPlainConsole(StandardOutputListener outputListener) {
    OutputEventListener stdoutChain = new UserInputStandardOutputRenderer(new StyledTextOutputBackedRenderer(new StreamingStyledTextOutput(outputListener)), clock);
    OutputEventListener consoleChain = new ThrottlingOutputEventListener(new BuildLogLevelFilterRenderer(new GroupingProgressLogEventGenerator(stdoutChain, clock, new PrettyPrefixedLogHeaderFormatter(), true)), clock);
    return addConsoleChain(consoleChain, true, true);
}
Also used : StyledTextOutputBackedRenderer(org.gradle.internal.logging.console.StyledTextOutputBackedRenderer) ThrottlingOutputEventListener(org.gradle.internal.logging.console.ThrottlingOutputEventListener) StreamingStyledTextOutput(org.gradle.internal.logging.text.StreamingStyledTextOutput) OutputEventListener(org.gradle.internal.logging.events.OutputEventListener) ThrottlingOutputEventListener(org.gradle.internal.logging.console.ThrottlingOutputEventListener) UserInputStandardOutputRenderer(org.gradle.internal.logging.console.UserInputStandardOutputRenderer) BuildLogLevelFilterRenderer(org.gradle.internal.logging.console.BuildLogLevelFilterRenderer) PrettyPrefixedLogHeaderFormatter(org.gradle.internal.logging.format.PrettyPrefixedLogHeaderFormatter)

Aggregations

StreamingStyledTextOutput (org.gradle.internal.logging.text.StreamingStyledTextOutput)2 BufferedWriter (java.io.BufferedWriter)1 FileWriter (java.io.FileWriter)1 BuildLogLevelFilterRenderer (org.gradle.internal.logging.console.BuildLogLevelFilterRenderer)1 StyledTextOutputBackedRenderer (org.gradle.internal.logging.console.StyledTextOutputBackedRenderer)1 ThrottlingOutputEventListener (org.gradle.internal.logging.console.ThrottlingOutputEventListener)1 UserInputStandardOutputRenderer (org.gradle.internal.logging.console.UserInputStandardOutputRenderer)1 OutputEventListener (org.gradle.internal.logging.events.OutputEventListener)1 PrettyPrefixedLogHeaderFormatter (org.gradle.internal.logging.format.PrettyPrefixedLogHeaderFormatter)1