|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
StandardOutputCapture start()
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
.
StandardOutputCapture stop()
isEnabled()
is true, it restores System.out and System.err to the values they had before
start()
has been called.
boolean isEnabled()
start()
will trigger redirection of the output.
LogLevel getLevel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |