Interface LoggingConfiguration
- All Known Implementing Classes:
StartParameter
public interface LoggingConfiguration
A
LoggingConfiguration
defines the logging settings for a Gradle build.-
Method Summary
Modifier and TypeMethodDescriptionReturns the style of logging output that should be written to the console.Returns the minimum logging level to use.Returns the detail that should be included in stacktraces.Specifies which type of warnings should be written to the console.void
setConsoleOutput
(ConsoleOutput consoleOutput) Specifies the style of logging output that should be written to the console.void
setLogLevel
(LogLevel logLevel) Specifies the minimum logging level to use.void
setShowStacktrace
(ShowStacktrace showStacktrace) Sets the detail that should be included in stacktraces.void
setWarningMode
(WarningMode warningMode) Specifies which type of warnings should be written to the console.
-
Method Details
-
getLogLevel
LogLevel getLogLevel()Returns the minimum logging level to use. All log messages with a lower log level are ignored. Defaults toLogLevel.LIFECYCLE
. -
setLogLevel
Specifies the minimum logging level to use. All log messages with a lower log level are ignored. -
getConsoleOutput
ConsoleOutput getConsoleOutput()Returns the style of logging output that should be written to the console. Defaults toConsoleOutput.Auto
-
setConsoleOutput
Specifies the style of logging output that should be written to the console. -
getWarningMode
WarningMode getWarningMode()Specifies which type of warnings should be written to the console.- Since:
- 4.5
-
setWarningMode
Specifies which type of warnings should be written to the console.- Since:
- 4.5
-
getShowStacktrace
ShowStacktrace getShowStacktrace()Returns the detail that should be included in stacktraces. Defaults toShowStacktrace.INTERNAL_EXCEPTIONS
. -
setShowStacktrace
Sets the detail that should be included in stacktraces.
-