object LoggingTestKit
Facilities for selectively matching expected events from logging.
Requires Logback.
- Source
- LoggingTestKit.scala
- Alphabetic
- By Inheritance
- LoggingTestKit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def custom(test: Function[LoggingEvent, Boolean]): LoggingTestKit
Create a custom event filter.
Create a custom event filter. The filter will match those events for which the supplied function returns
true
. - def deadLetters(): LoggingTestKit
Filter for the logging of dead letters.
- def debug(messageIncludes: String): LoggingTestKit
Create a filter for DEBUG level events with a log message that contains the given
messageIncludes
.Create a filter for DEBUG level events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].
- def empty: LoggingTestKit
An empty filter that doesn't match any events.
An empty filter that doesn't match any events.
More conditions can be added to the returned [LoggingEventFilter].
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error[A <: Throwable](implicit arg0: ClassTag[A]): LoggingTestKit
Create a filter for WARN level events with a an included
throwable
that is a class or subclass of the givenThrowable
ClassTag
.Create a filter for WARN level events with a an included
throwable
that is a class or subclass of the givenThrowable
ClassTag
.More conditions can be added to the returned [LoggingEventFilter].
- def error(messageIncludes: String): LoggingTestKit
Create a filter for ERROR level events with a log message that contains the given
messageIncludes
.Create a filter for ERROR level events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def info(messageIncludes: String): LoggingTestKit
Create a filter for INFO level events with a log message that contains the given
messageIncludes
.Create a filter for INFO level events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def messageContains(str: String): LoggingTestKit
Create a filter for events with a log message that contains the given
messageIncludes
.Create a filter for events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(messageIncludes: String): LoggingTestKit
Create a filter for TRACE level events with a log message that contains the given
messageIncludes
.Create a filter for TRACE level events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def warn[A <: Throwable](implicit arg0: ClassTag[A]): LoggingTestKit
Create a filter for WARN level events with a an included
throwable
that is a class or subclass of the givenThrowable
ClassTag
.Create a filter for WARN level events with a an included
throwable
that is a class or subclass of the givenThrowable
ClassTag
.More conditions can be added to the returned [LoggingEventFilter].
- def warn(messageIncludes: String): LoggingTestKit
Create a filter for WARN level events with a log message that contains the given
messageIncludes
.Create a filter for WARN level events with a log message that contains the given
messageIncludes
.More conditions can be added to the returned [LoggingEventFilter].