|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.logging.StandardOutputLogging
public class StandardOutputLogging
Nested Class Summary | |
---|---|
static class |
StandardOutputLogging.LoggingPrintStream
|
Field Summary | |
---|---|
static java.io.PrintStream |
DEFAULT_ERR
|
static java.io.PrintStream |
DEFAULT_OUT
|
static java.lang.ThreadLocal<StandardOutputLogging.LoggingPrintStream> |
ERR_LOGGING_STREAM
|
static java.lang.ThreadLocal<StandardOutputLogging.LoggingPrintStream> |
OUT_LOGGING_STREAM
|
Constructor Summary | |
---|---|
StandardOutputLogging()
|
Method Summary | |
---|---|
static void |
flush()
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.ThreadLocal<StandardOutputLogging.LoggingPrintStream> OUT_LOGGING_STREAM
public static final java.lang.ThreadLocal<StandardOutputLogging.LoggingPrintStream> ERR_LOGGING_STREAM
public static final java.io.PrintStream DEFAULT_OUT
public static final java.io.PrintStream DEFAULT_ERR
Constructor Detail |
---|
public StandardOutputLogging()
Method Detail |
---|
public static void on(LogLevel outLogLevel)
outLogLevel
- Log level for System.outpublic static void onOut(LogLevel outLogLevel)
outLogLevel
- Log level for System.outpublic static void onErr(LogLevel errLogLevel)
errLogLevel
- Log level for System.errpublic static void flush()
public static void off()
public static void offOut()
public static void offErr()
public static StandardOutputState getStateSnapshot()
public static void restoreState(StandardOutputState state)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |