public class TestEventListener
extends akka.event.Logging.DefaultLogger
akka.test.conf
and run your tests with system property
"akka.mode"
set to "test"
:
akka {
loggers = ["akka.testkit.TestEventListener"]
}
Constructor and Description |
---|
TestEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(EventFilter filter) |
boolean |
filter(akka.event.Logging.LogEvent event) |
scala.collection.immutable.List<EventFilter> |
filters() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive() |
void |
removeFilter(EventFilter filter) |
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$date_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$dateFormat_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$debugFormat_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$errorFormat_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$errorFormatWithoutCause_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$infoFormat_$eq, akka$event$Logging$StdOutLogger$_setter_$akka$event$Logging$StdOutLogger$$warningFormat_$eq, akka$event$Logging$StdOutLogger$$date, akka$event$Logging$StdOutLogger$$dateFormat, akka$event$Logging$StdOutLogger$$debugFormat, akka$event$Logging$StdOutLogger$$errorFormat, akka$event$Logging$StdOutLogger$$errorFormatWithoutCause, akka$event$Logging$StdOutLogger$$infoFormat, akka$event$Logging$StdOutLogger$$warningFormat, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, debug, error, info, postRestart, postStop, preRestart, preStart, print, self, sender, supervisorStrategy, timestamp, unhandled, warning
public scala.collection.immutable.List<EventFilter> filters()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
receive
in interface akka.actor.Actor
receive
in class akka.event.Logging.DefaultLogger
public boolean filter(akka.event.Logging.LogEvent event)
public void addFilter(EventFilter filter)
public void removeFilter(EventFilter filter)