# testLogging

open fun testLogging(@DelegatesTo(value = TestLoggingContainer::class) closure: Closure)(source)

Allows configuring the logging of the test execution, for example log eagerly the standard output, etc.

    apply plugin: 'java'

    // makes the standard streams (err and out) visible at console when running tests
    test.testLogging {
       showStandardStreams = true
    }

Content copied to clipboard

#### Since

4.4

#### Parameters

closure

configure closure

open fun testLogging(action: Action<in TestLoggingContainer>)(source)

Allows configuring the logging of the test execution, for example log eagerly the standard output, etc.

    apply plugin: 'java'

    // makes the standard streams (err and out) visible at console when running tests
    test.testLogging {
       showStandardStreams = true
    }

Content copied to clipboard

#### Since

4.4

#### Parameters

action

configure action

val testLogging: TestLoggingContainer(source)