TestLoggingContainer

API Documentation:TestLoggingContainer

Note: This class is experimental and may change in a future version of Gradle.

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"
        }
    }
}

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

Properties

PropertyDescription
debug

Returns logging options for debug level.

error

Returns logging options for error level.

info

Gets logging options for info level.

lifecycle

Returns logging options for lifecycle level.

quiet

Returns logging options for quiet level.

warn

Gets logging options for warn level.

Property details

Note: This property is experimental and may change in a future version of Gradle.

Returns logging options for debug level.

Note: This property is experimental and may change in a future version of Gradle.

Returns logging options for error level.

Note: This property is experimental and may change in a future version of Gradle.

Gets logging options for info level.

TestLogging lifecycle

Note: This property is experimental and may change in a future version of Gradle.

Returns logging options for lifecycle level.

Note: This property is experimental and may change in a future version of Gradle.

Returns logging options for quiet level.

Note: This property is experimental and may change in a future version of Gradle.

Gets logging options for warn level.

Script blocks

No script blocks

Methods

No methods