interface LoggingManager : 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.
abstract fun captureStandardError(level: LogLevel): LoggingManager
Requests that output written to System.err be routed to Gradle's logging system. The default is that System.err is routed to |
|
abstract fun captureStandardOutput(level: LogLevel): LoggingManager
Requests that output written to System.out be routed to Gradle's logging system. The default is that System.out is routed to |
|
abstract fun getLevel(): LogLevel
Returns the current logging level. |
|
abstract fun getStandardErrorCaptureLevel(): LogLevel
Returns the log level that output written to System.err will be mapped to. |
|
abstract fun getStandardOutputCaptureLevel(): LogLevel
Returns the log level that output written to System.out will be mapped to. |
abstract fun addStandardErrorListener(listener: StandardOutputListener): Unit
Adds a listener which receives output written to standard error by the Gradle logging system. |
|
abstract fun addStandardOutputListener(listener: StandardOutputListener): Unit
Adds a listener which receives output written to standard output by the Gradle logging system. |
|
abstract fun removeStandardErrorListener(listener: StandardOutputListener): Unit
Removes a listener from standard error. |
|
abstract fun removeStandardOutputListener(listener: StandardOutputListener): Unit
Removes a listener from standard output. |