Package akka.actor
Interface DiagnosticActorLogging
-
- All Superinterfaces:
Actor
public interface DiagnosticActorLogging extends Actor
Scala API: Mix in DiagnosticActorLogging into your Actor to easily obtain a reference to a logger with MDC support, which is available under the name "log". In the example bellow "the one who knocks" will be available under the key "iam" for using it in the logback pattern.class MyActor extends Actor with DiagnosticActorLogging { override def mdc(currentMessage: Any): MDC = { Map("iam", "the one who knocks") } def receive = { case "pigdog" => log.info("We've got yet another pigdog on our hands") } }
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
akka$actor$DiagnosticActorLogging$_setter_$log_$eq(DiagnosticLoggingAdapter x$1)
void
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
INTERNAL API.DiagnosticLoggingAdapter
log()
scala.collection.immutable.Map<java.lang.String,java.lang.Object>
mdc(java.lang.Object currentMessage)
void
super$aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
-
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, context, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandled
-
-
-
-
Method Detail
-
akka$actor$DiagnosticActorLogging$_setter_$log_$eq
void akka$actor$DiagnosticActorLogging$_setter_$log_$eq(DiagnosticLoggingAdapter x$1)
-
aroundReceive
void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
Description copied from interface:Actor
INTERNAL API.Can be overridden to intercept calls to this actor's current behavior.
- Specified by:
aroundReceive
in interfaceActor
- Parameters:
receive
- current behavior.msg
- current message.
-
log
DiagnosticLoggingAdapter log()
-
mdc
scala.collection.immutable.Map<java.lang.String,java.lang.Object> mdc(java.lang.Object currentMessage)
-
super$aroundReceive
void super$aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
-
-