api / org.gradle.api.logging / LoggingOutput

LoggingOutput

interface LoggingOutput

Provides access to the output of the Gradle logging system.

Functions

addStandardErrorListener

abstract fun addStandardErrorListener(listener: StandardOutputListener): Unit

Adds a listener which receives output written to standard error by the Gradle logging system.

addStandardOutputListener

abstract fun addStandardOutputListener(listener: StandardOutputListener): Unit

Adds a listener which receives output written to standard output by the Gradle logging system.

removeStandardErrorListener

abstract fun removeStandardErrorListener(listener: StandardOutputListener): Unit

Removes a listener from standard error.

removeStandardOutputListener

abstract fun removeStandardOutputListener(listener: StandardOutputListener): Unit

Removes a listener from standard output.

Inheritors

LoggingManager

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.