org.gradle.api.logging
Interface StandardOutputCapture

All Known Implementing Classes:
DefaultStandardOutputCapture

public interface StandardOutputCapture


Method Summary
 LogLevel getLevel()
          Returns the log level the output is redirected to.
 boolean isEnabled()
          Whether a call to start() will trigger redirection of the output.
 StandardOutputCapture start()
          If isEnabled() is true, it starts output redirection to the Gradle logging system.
 StandardOutputCapture stop()
          If isEnabled() is true, it restores System.out and System.err to the values they had before start() has been called.
 

Method Detail

start

StandardOutputCapture start()
If isEnabled() is true, it starts output redirection to the Gradle logging system. System.out is redirected to the INFO level. System.err is always redirected to the ERROR level. If the standard output is captured globally already, setting the task output capturing has no effect. For more fine-grained control see StandardOutputLogging.


stop

StandardOutputCapture stop()
If isEnabled() is true, it restores System.out and System.err to the values they had before start() has been called.


isEnabled

boolean isEnabled()
Whether a call to start() will trigger redirection of the output.


getLevel

LogLevel getLevel()
Returns the log level the output is redirected to.