|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.logging.StandardOutputLogging
class StandardOutputLogging
Nested Class Summary | |
---|---|
class |
StandardOutputLogging.LoggingPrintStream
|
Field Summary | |
---|---|
static PrintStream |
DEFAULT_ERR
|
static PrintStream |
DEFAULT_OUT
|
static java.lang.ThreadLocal |
ERR_LOGGING_STREAM
|
static java.lang.ThreadLocal |
OUT_LOGGING_STREAM
|
Constructor Summary | |
StandardOutputLogging()
|
Method Summary | |
---|---|
static void
|
flush()
|
static StandardOutputLoggingAdapter
|
getErrAdapter()
|
static StandardOutputLoggingAdapter
|
getOutAdapter()
|
static StandardOutputState
|
getStateSnapshot()
Returns the current values for System.out and Sytem.err. |
static void
|
off()
Sets System.err and System.out to the values they had before Gradle has been started. |
static void
|
offErr()
Sets System.err to the values it had before Gradle has been started. |
static void
|
offOut()
Sets System.out to the values it had before Gradle has been started. |
static void
|
on(LogLevel outLogLevel)
Redirects the standard out to the Gradle logging. |
static void
|
onErr(LogLevel errLogLevel)
Redirects only System.err to the specified level. |
static void
|
onOut(LogLevel outLogLevel)
Redirects only System.out to the specified level. |
static void
|
restoreState(StandardOutputState state)
Sets the values for System.out and Sytem.err. |
Methods inherited from class java.lang.Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
static final PrintStream DEFAULT_ERR
static final PrintStream DEFAULT_OUT
static final java.lang.ThreadLocal ERR_LOGGING_STREAM
static final java.lang.ThreadLocal OUT_LOGGING_STREAM
Constructor Detail |
---|
StandardOutputLogging()
Method Detail |
---|
public static void flush()
public static StandardOutputLoggingAdapter getErrAdapter()
public static StandardOutputLoggingAdapter getOutAdapter()
public static StandardOutputState getStateSnapshot()
public static void off()
public static void offErr()
public static void offOut()
public static void on(LogLevel outLogLevel)
public static void onErr(LogLevel errLogLevel)
public static void onOut(LogLevel outLogLevel)
public static void restoreState(StandardOutputState state)
Groovy Documentation