|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.api.logging.DefaultStandardOutputCapture
public class DefaultStandardOutputCapture
| Constructor Summary | |
|---|---|
DefaultStandardOutputCapture()
Creates and instance with enabled set to false and LogLevel set to null. |
|
DefaultStandardOutputCapture(boolean enabled,
LogLevel level)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
LogLevel |
getLevel()
Returns the log level the output is redirected to. |
int |
hashCode()
|
boolean |
isEnabled()
Whether a call to StandardOutputCapture.start() will trigger redirection of the output. |
DefaultStandardOutputCapture |
start()
If StandardOutputCapture.isEnabled() is true, it starts output redirection to the Gradle logging system. |
DefaultStandardOutputCapture |
stop()
If StandardOutputCapture.isEnabled() is true, it restores System.out and System.err to the values they had before
StandardOutputCapture.start() has been called. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStandardOutputCapture()
public DefaultStandardOutputCapture(boolean enabled,
LogLevel level)
| Method Detail |
|---|
public DefaultStandardOutputCapture start()
StandardOutputCaptureStandardOutputCapture.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.
start in interface StandardOutputCaptureStandardOutputCapture.start()public DefaultStandardOutputCapture stop()
StandardOutputCaptureStandardOutputCapture.isEnabled() is true, it restores System.out and System.err to the values they had before
StandardOutputCapture.start() has been called.
stop in interface StandardOutputCapture()public boolean isEnabled()
StandardOutputCaptureStandardOutputCapture.start() will trigger redirection of the output.
isEnabled in interface StandardOutputCapture()public LogLevel getLevel()
StandardOutputCapture
getLevel in interface StandardOutputCapture()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||