# 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(listener: StandardOutputListener)
Adds a listener which receives output written to standard error by the Gradle logging system.
addStandardOutputListener
Link copied to clipboard
abstract fun addStandardOutputListener(listener: StandardOutputListener)
Adds a listener which receives output written to standard output by the Gradle logging system.
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(listener: StandardOutputListener)
Removes a listener from standard error.
removeStandardOutputListener
Link copied to clipboard
abstract fun removeStandardOutputListener(listener: StandardOutputListener)
Removes a listener from standard output.