A LoggingManager
provides access to and control over the Gradle logging system. Using this interface, you
can control the current logging level and standard output and error capture.
Type | Name and description |
---|---|
LoggingManager |
captureStandardError(LogLevel level) Requests that output written to System.err be routed to Gradle's logging system. |
LoggingManager |
captureStandardOutput(LogLevel level) Requests that output written to System.out be routed to Gradle's logging system. |
LogLevel |
getLevel() Returns the current logging level. |
LogLevel |
getStandardErrorCaptureLevel() Returns the log level that output written to System.err will be mapped to. |
LogLevel |
getStandardOutputCaptureLevel() Returns the log level that output written to System.out will be mapped to. |
LoggingManager |
setLevel(LogLevel logLevel) Sets the minimum logging level. |
Methods inherited from class | Name |
---|---|
interface LoggingOutput |
addStandardErrorListener, addStandardOutputListener, removeStandardErrorListener, removeStandardOutputListener |
Requests that output written to System.err be routed to Gradle's logging system. The default is that System.err is routed to LogLevel.ERROR.
level
- The log level to route System.err to.Requests that output written to System.out be routed to Gradle's logging system. The default is that System.out is routed to LogLevel.QUIET
level
- The log level to route System.out to.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.
Sets the minimum logging level. All messages at a lower level are discarded.
logLevel
- The minimum logging level.