public interface LoggingConfiguration
LoggingConfiguration
defines the logging settings for a Gradle build.Modifier and Type | Method and Description |
---|---|
ConsoleOutput |
getConsoleOutput()
Returns the style of logging output that should be written to the console.
|
LogLevel |
getLogLevel()
Returns the minimum logging level to use.
|
ShowStacktrace |
getShowStacktrace()
Returns the detail that should be included in stacktraces.
|
boolean |
isColorOutput()
Deprecated.
Use
getConsoleOutput() instead. |
void |
setColorOutput(boolean colorOutput)
Deprecated.
Use
setConsoleOutput(ConsoleOutput) instead. |
void |
setConsoleOutput(ConsoleOutput colorOutput)
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.
|
LogLevel getLogLevel()
LogLevel.LIFECYCLE
.void setLogLevel(LogLevel logLevel)
@Deprecated boolean isColorOutput()
getConsoleOutput()
instead.@Deprecated void setColorOutput(boolean colorOutput)
setConsoleOutput(ConsoleOutput)
instead.colorOutput
- true if logging output should be displayed in color.ConsoleOutput getConsoleOutput()
ConsoleOutput.Auto
void setConsoleOutput(ConsoleOutput colorOutput)
ShowStacktrace getShowStacktrace()
ShowStacktrace.INTERNAL_EXCEPTIONS
.void setShowStacktrace(ShowStacktrace showStacktrace)