# TestLogging

interface TestLogging(source)

Options that determine which test events get logged, and at which detail.

#### Inheritors

TestLoggingContainer

## Functions

events
Link copied to clipboard
abstract fun events(events: Array<Any>)
Sets the events to be logged.
getDisplayGranularity
Link copied to clipboard
@Internal
abstract fun getDisplayGranularity(): Property<Integer>
Returns the display granularity of the events to be logged.
getEvents
Link copied to clipboard
@Internal
abstract fun getEvents(): SetProperty<TestLogEvent>
Returns the events to be logged.
getExceptionFormat
Link copied to clipboard
@Internal
abstract fun getExceptionFormat(): Property<TestExceptionFormat>
Returns the format to be used for logging test exceptions.
getMaxGranularity
Link copied to clipboard
@Internal
abstract fun getMaxGranularity(): Property<Integer>
Returns the maximum granularity of the events to be logged.
getMinGranularity
Link copied to clipboard
@Internal
abstract fun getMinGranularity(): Property<Integer>
Returns the minimum granularity of the events to be logged.
getShowCauses
Link copied to clipboard
@Internal
abstract fun getShowCauses(): Property<Boolean>
Tells whether causes of exceptions that occur during test execution will be logged.
getShowExceptions
Link copied to clipboard
@Internal
abstract fun getShowExceptions(): Property<Boolean>
Tells whether exceptions that occur during test execution will be logged.
getShowStackTraces
Link copied to clipboard
@Internal
abstract fun getShowStackTraces(): Property<Boolean>
Tells whether stack traces of exceptions that occur during test execution will be logged.
getShowStandardStreams
Link copied to clipboard
@Internal
abstract fun getShowStandardStreams(): Property<Boolean>
Tells whether output on standard out and standard error will be logged.
getStackTraceFilters
Link copied to clipboard
@Internal
abstract fun getStackTraceFilters(): SetProperty<TestStackTraceFilter>
Returns the set of filters to be used for sanitizing test stack traces.
setDisplayGranularity
Link copied to clipboard
abstract fun setDisplayGranularity(granularity: Int)
Sets the display granularity of the events to be logged.
setEvents
Link copied to clipboard
abstract fun setEvents(events: Iterable<out Any>)
abstract fun setEvents(events: Set<TestLogEvent>)
Sets the events to be logged.
setExceptionFormat
Link copied to clipboard
abstract fun setExceptionFormat(exceptionFormat: Any)
abstract fun setExceptionFormat(exceptionFormat: TestExceptionFormat)
Sets the format to be used for logging test exceptions.
setMaxGranularity
Link copied to clipboard
abstract fun setMaxGranularity(granularity: Int)
Sets the maximum granularity of the events to be logged.
setMinGranularity
Link copied to clipboard
abstract fun setMinGranularity(granularity: Int)
Sets the minimum granularity of the events to be logged.
setShowCauses
Link copied to clipboard
abstract fun setShowCauses(flag: Boolean)
Sets whether causes of exceptions that occur during test execution will be logged.
setShowExceptions
Link copied to clipboard
abstract fun setShowExceptions(flag: Boolean)
Sets whether exceptions that occur during test execution will be logged.
setShowStackTraces
Link copied to clipboard
abstract fun setShowStackTraces(flag: Boolean)
Sets whether stack traces of exceptions that occur during test execution will be logged.
setShowStandardStreams
Link copied to clipboard
abstract fun setShowStandardStreams(flag: Boolean): TestLogging
Sets whether output on standard out and standard error will be logged.
setStackTraceFilters
Link copied to clipboard
abstract fun setStackTraceFilters(stackTraces: Iterable<out Any>)
abstract fun setStackTraceFilters(stackTraces: Set<TestStackTraceFilter>)
Sets the set of filters to be used for sanitizing test stack traces.
stackTraceFilters
Link copied to clipboard
abstract fun stackTraceFilters(stackTraces: Array<Any>)
Convenience method for getStackTraceFilters.