TestLoggingContainer (Gradle API 8.14) (original) (raw)

All Superinterfaces:

[TestLogging](TestLogging.html "interface in org.gradle.api.tasks.testing.logging")


public interface TestLoggingContainerextends TestLogging

Container for all test logging related options. Different options can be set for each log level. Options that are set directly (without specifying a log level) apply to log level LIFECYCLE. Example:

apply plugin: 'java'

test { testLogging { // set options for log level LIFECYCLE events("failed") exceptionFormat = "short"

     // set options for log level DEBUG
     debug {
         events("started", "skipped", "failed")
         exceptionFormat = "full"
     }

     // remove standard output/error logging from --info builds
     // by assigning only 'failed' and 'skipped' events
     info.events = ["failed", "skipped"]
 }

}

The defaults that are in place show progressively more information on log levels WARN, LIFECYCLE, INFO, and DEBUG, respectively.

void
Configures logging options for debug level.
void
Configures logging options for error level.
Returns logging options for the specified level.
[getDebug](#getDebug%28%29)()
Returns logging options for debug level.
[getError](#getError%28%29)()
Returns logging options for error level.
[getInfo](#getInfo%28%29)()
Gets logging options for info level.
Returns logging options for lifecycle level.
[getQuiet](#getQuiet%28%29)()
Returns logging options for quiet level.
[getWarn](#getWarn%28%29)()
Gets logging options for warn level.
void
Configures logging options for info level.
void
Configures logging options for lifecycle level.
void
Configures logging options for quiet level.
void
Sets logging options for debug level.
void
Sets logging options for error level.
void
Sets logging options for info level.
void
Sets logging options for lifecycle level.
void
Sets logging options for quiet level.
void
Sets logging options for warn level.
void
Configures logging options for warn level.

Methods inherited from interface org.gradle.api.tasks.testing.logging.TestLogging

[events](TestLogging.html#events%28java.lang.Object...%29), [getDisplayGranularity](TestLogging.html#getDisplayGranularity%28%29), [getEvents](TestLogging.html#getEvents%28%29), [getExceptionFormat](TestLogging.html#getExceptionFormat%28%29), [getMaxGranularity](TestLogging.html#getMaxGranularity%28%29), [getMinGranularity](TestLogging.html#getMinGranularity%28%29), [getShowCauses](TestLogging.html#getShowCauses%28%29), [getShowExceptions](TestLogging.html#getShowExceptions%28%29), [getShowStackTraces](TestLogging.html#getShowStackTraces%28%29), [getShowStandardStreams](TestLogging.html#getShowStandardStreams%28%29), [getStackTraceFilters](TestLogging.html#getStackTraceFilters%28%29), [setDisplayGranularity](TestLogging.html#setDisplayGranularity%28int%29), [setEvents](TestLogging.html#setEvents%28java.lang.Iterable%29), [setEvents](TestLogging.html#setEvents%28java.util.Set%29), [setExceptionFormat](TestLogging.html#setExceptionFormat%28java.lang.Object%29), [setExceptionFormat](TestLogging.html#setExceptionFormat%28org.gradle.api.tasks.testing.logging.TestExceptionFormat%29), [setMaxGranularity](TestLogging.html#setMaxGranularity%28int%29), [setMinGranularity](TestLogging.html#setMinGranularity%28int%29), [setShowCauses](TestLogging.html#setShowCauses%28boolean%29), [setShowExceptions](TestLogging.html#setShowExceptions%28boolean%29), [setShowStackTraces](TestLogging.html#setShowStackTraces%28boolean%29), [setShowStandardStreams](TestLogging.html#setShowStandardStreams%28boolean%29), [setStackTraceFilters](TestLogging.html#setStackTraceFilters%28java.lang.Iterable%29), [setStackTraceFilters](TestLogging.html#setStackTraceFilters%28java.util.Set%29), [stackTraceFilters](TestLogging.html#stackTraceFilters%28java.lang.Object...%29)