Class LoggingTestKit$
java.lang.Object
org.apache.pekko.actor.testkit.typed.javadsl.LoggingTestKit$
Facilities for selectively matching log messages.
Requires Logback.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LoggingTestKit$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustom(scala.Function1<LoggingEvent, Object> test) Create a custom event filter.Filter for the logging of dead letters.Create a filter for DEBUG level events with a log message that contains the givenmessageIncludes.empty()An empty filter that doesn't match any events.Create a filter for ERROR level events with an includedthrowablethat is a class or subclass of the given *Throwableclass.Create a filter for ERROR level events with a log message that contains the givenmessageIncludes.Create a filter for INFO level events with a log message that contains the givenmessageIncludes.messageContains(String str) Create a filter for events with a log message that contains the givenmessageIncludes.Create a filter for TRACE level events with a log message that contains the givenmessageIncludes.Create a filter for WARN level events with an includedthrowablethat is a class or subclass of the given *Throwableclass.Create a filter for WARN level events with a log message that contains the givenmessageIncludes.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
LoggingTestKit$
public LoggingTestKit$()
-
-
Method Details
-
empty
An empty filter that doesn't match any events.More conditions can be added to the returned [LoggingEventFilter].
-
messageContains
Create a filter for events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
trace
Create a filter for TRACE level events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
debug
Create a filter for DEBUG level events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
info
Create a filter for INFO level events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
warn
Create a filter for WARN level events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
warn
Create a filter for WARN level events with an includedthrowablethat is a class or subclass of the given *Throwableclass.More conditions can be added to the returned [LoggingEventFilter].
-
error
Create a filter for ERROR level events with a log message that contains the givenmessageIncludes.More conditions can be added to the returned [LoggingEventFilter].
-
error
Create a filter for ERROR level events with an includedthrowablethat is a class or subclass of the given *Throwableclass.More conditions can be added to the returned [LoggingEventFilter].
-
custom
Create a custom event filter. The filter will match those events for which for which the supplied function returnstrue. -
deadLetters
Filter for the logging of dead letters.
-