LoggingManager (Gradle API 8.14) (original) (raw)
All Superinterfaces:
[LoggingOutput](LoggingOutput.html "interface in org.gradle.api.logging")
public interface LoggingManagerextends 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.
Method Summary
Requests that output written to System.err be routed to Gradle's logging system.
Requests that output written to System.out be routed to Gradle's logging system.[getLevel](#getLevel%28%29)()
Returns the current logging level.
Returns the log level that output written to System.err will be mapped to.
Returns the log level that output written to System.out will be mapped to.
Method Details
captureStandardOutput
Requests that output written to System.out be routed to Gradle's logging system. The default is that System.out is routed to LogLevel.QUIET
Parameters:
level
- The log level to route System.out to.
Returns:
thiscaptureStandardError
Requests that output written to System.err be routed to Gradle's logging system. The default is that System.err is routed to LogLevel.ERROR.
Parameters:
level
- The log level to route System.err to.
Returns:
thisgetStandardOutputCaptureLevel
LogLevel getStandardOutputCaptureLevel()
Returns the log level that output written to System.out will be mapped to.
Returns:
The log level. Returns null when standard output capture is disabled.getStandardErrorCaptureLevel
LogLevel getStandardErrorCaptureLevel()
Returns the log level that output written to System.err will be mapped to.
Returns:
The log level. Returns null when standard error capture is disabled.getLevel
Returns the current logging level.
Returns:
The current logging level.