Package org.gradle.api.logging
Schnittstelle LoggingManager
- Alle Superschnittstellen:
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcaptureStandardError(LogLevel level) Requests that output written to System.err be routed to Gradle's logging system.captureStandardOutput(LogLevel level) Requests that output written to System.out be routed to Gradle's logging system.getLevel()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.Von Schnittstelle geerbte Methoden org.gradle.api.logging.LoggingOutput
addStandardErrorListener, addStandardOutputListener, removeStandardErrorListener, removeStandardOutputListener
-
Methodendetails
-
captureStandardOutput
Requests that output written to System.out be routed to Gradle's logging system. The default is that System.out is routed toLogLevel.QUIET- Parameter:
level- The log level to route System.out to.- Gibt zurück:
- this
-
captureStandardError
Requests that output written to System.err be routed to Gradle's logging system. The default is that System.err is routed toLogLevel.ERROR.- Parameter:
level- The log level to route System.err to.- Gibt zurück:
- this
-
getStandardOutputCaptureLevel
LogLevel getStandardOutputCaptureLevel()Returns the log level that output written to System.out will be mapped to.- Gibt zurück:
- 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.- Gibt zurück:
- The log level. Returns null when standard error capture is disabled.
-
getLevel
LogLevel getLevel()Returns the current logging level.- Gibt zurück:
- The current logging level.
-