Package org.gradle.api.logging
Interface LoggingManager
- All Superinterfaces:
- 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.
- 
Method SummaryModifier and TypeMethodDescriptioncaptureStandardError(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.Methods inherited from interface org.gradle.api.logging.LoggingOutputaddStandardErrorListener, addStandardOutputListener, removeStandardErrorListener, removeStandardOutputListener
- 
Method Details- 
captureStandardOutputRequests that output written to System.out be routed to Gradle's logging system. The default is that System.out is routed toLogLevel.QUIET- Parameters:
- level- The log level to route System.out to.
- Returns:
- this
 
- 
captureStandardErrorRequests that output written to System.err be routed to Gradle's logging system. The default is that System.err is routed toLogLevel.ERROR.- Parameters:
- level- The log level to route System.err to.
- Returns:
- this
 
- 
getStandardOutputCaptureLevelLogLevel getStandardOutputCaptureLevel()Returns the log level that output written to System.out will be mapped to.- Returns:
- The log level. Returns null when standard output capture is disabled.
 
- 
getStandardErrorCaptureLevelLogLevel getStandardErrorCaptureLevel()Returns the log level that output written to System.err will be mapped to.- Returns:
- The log level. Returns null when standard error capture is disabled.
 
- 
getLevelLogLevel getLevel()Returns the current logging level.- Returns:
- The current logging level.
 
 
-