LoggingOutput
public interface LoggingManager extends LoggingOutput
A LoggingManager
provides access to and control over the Gradle logging system. Using this interface, you
can control standard output and error capture and receive logging events.
Modifier and Type | Method | Description |
---|---|---|
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.
|
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.
|
addStandardErrorListener, addStandardOutputListener, removeStandardErrorListener, removeStandardOutputListener
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.LogLevel getStandardOutputCaptureLevel()
LogLevel getStandardErrorCaptureLevel()
LogLevel getLevel()