gradle
8.4

# LoggingManager

interface LoggingManager : LoggingOutput(source)

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.

## Functions

addStandardErrorListener
Link copied to clipboard
abstract fun addStandardErrorListener(p: StandardOutputListener)
addStandardOutputListener
Link copied to clipboard
abstract fun addStandardOutputListener(p: StandardOutputListener)
captureStandardError
Link copied to clipboard
abstract fun captureStandardError(level: LogLevel): LoggingManager
Requests that output written to System.err be routed to Gradle's logging system.
captureStandardOutput
Link copied to clipboard
abstract fun captureStandardOutput(level: LogLevel): LoggingManager
Requests that output written to System.out be routed to Gradle's logging system.
getLevel
Link copied to clipboard
abstract fun getLevel(): LogLevel
Returns the current logging level.
getStandardErrorCaptureLevel
Link copied to clipboard
abstract fun getStandardErrorCaptureLevel(): LogLevel
Returns the log level that output written to System.err will be mapped to.
getStandardOutputCaptureLevel
Link copied to clipboard
abstract fun getStandardOutputCaptureLevel(): LogLevel
Returns the log level that output written to System.out will be mapped to.
removeStandardErrorListener
Link copied to clipboard
abstract fun removeStandardErrorListener(p: StandardOutputListener)
removeStandardOutputListener
Link copied to clipboard
abstract fun removeStandardOutputListener(p: StandardOutputListener)