public class TestEventListener extends Logging.DefaultLogger
akka.test.conf
and run your tests with system property
"akka.mode"
set to "test"
:
akka {
loggers = ["akka.testkit.TestEventListener"]
}
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
TestEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(EventFilter filter) |
boolean |
filter(Logging.LogEvent event) |
scala.collection.immutable.List<EventFilter> |
filters() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
void |
removeFilter(EventFilter filter) |
context, self
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandled
public scala.collection.immutable.List<EventFilter> filters()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
receive
in interface Actor
receive
in class Logging.DefaultLogger
public boolean filter(Logging.LogEvent event)
public void addFilter(EventFilter filter)
public void removeFilter(EventFilter filter)