|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggingManager
A LoggingManager
provides access to and control over the Gradle logging system. Using this interface, you
can control the current logging level and standard output and error capture.
Method Summary | |
---|---|
LoggingManager |
captureStandardError(LogLevel level)
Requests that output written to System.err be routed to Gradle's logging system. |
LoggingManager |
captureStandardOutput(LogLevel level)
Requests that output written to System.out be routed to Gradle's logging system. |
LoggingManager |
disableStandardOutputCapture()
Deprecated. |
LogLevel |
getLevel()
Returns the current logging level. |
LogLevel |
getStandardErrorCaptureLevel()
Returns the log level that output written to System.err will be mapped to. |
LogLevel |
getStandardOutputCaptureLevel()
Returns the log level that output written to System.out will be mapped to. |
boolean |
isStandardOutputCaptureEnabled()
Deprecated. |
LoggingManager |
setLevel(LogLevel logLevel)
Sets the minimum logging level. |
Methods inherited from interface org.gradle.api.logging.LoggingOutput |
---|
addStandardErrorListener, addStandardOutputListener, removeStandardErrorListener, removeStandardOutputListener |
Method Detail |
---|
LoggingManager captureStandardOutput(LogLevel level)
LogLevel.QUIET
level
- The log level to route System.out to.
LoggingManager captureStandardError(LogLevel level)
LogLevel.ERROR
.
level
- The log level to route System.err to.
@Deprecated LoggingManager disableStandardOutputCapture()
@Deprecated boolean isStandardOutputCaptureEnabled()
LogLevel getStandardOutputCaptureLevel()
LogLevel getStandardErrorCaptureLevel()
LogLevel getLevel()
LoggingManager setLevel(LogLevel logLevel)
logLevel
- The minimum logging level.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |