Package org.apache.pekko.event
Class LoggingReceive$
java.lang.Object
org.apache.pekko.event.LoggingReceive$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LoggingReceive$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.PartialFunction<Object,scala.runtime.BoxedUnit> apply(Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Wrap a Receive partial function in a logging enclosure, which sends a message with given log level to the event bus each time before a message is matched.scala.PartialFunction<Object,scala.runtime.BoxedUnit> apply(scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Wrap a Receive partial function in a logging enclosure, which sends a debug message to the event bus each time before a message is matched.create(AbstractActor.Receive r, AbstractActor.ActorContext context) Java API: compatible with lambda expressionsscala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs.scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
LoggingReceive$
public LoggingReceive$()
-
-
Method Details
-
apply
public scala.PartialFunction<Object,scala.runtime.BoxedUnit> apply(scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Wrap a Receive partial function in a logging enclosure, which sends a debug message to the event bus each time before a message is matched. This includes messages which are not handled.def receive = LoggingReceive { case x => ... }This method does NOT modify the given Receive unless
pekko.actor.debug.receiveis set in configuration. -
apply
public scala.PartialFunction<Object,scala.runtime.BoxedUnit> apply(Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Wrap a Receive partial function in a logging enclosure, which sends a message with given log level to the event bus each time before a message is matched. This includes messages which are not handled. -
create
Java API: compatible with lambda expressions -
withLabel
public scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, Logging.LogLevel logLevel, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs. -
withLabel
public scala.PartialFunction<Object,scala.runtime.BoxedUnit> withLabel(String label, scala.PartialFunction<Object, scala.runtime.BoxedUnit> r, ActorContext context) Create a decorated logger which will append" in state " + labelto each message it logs.
-