+act #3949 add LoggingReceive.withLabel

def someState = LoggingReceive.withLabel("some state") {
  case msg => ...
}
This commit is contained in:
Roland Kuhn 2014-03-21 20:17:53 +01:00
parent a9c022e92a
commit dc305eaf18
2 changed files with 20 additions and 7 deletions

View file

@ -74,7 +74,10 @@ object TestkitDocSpec {
//#logging-receive
import akka.event.LoggingReceive
def receive = LoggingReceive {
case msg => // Do something...
case msg => // Do something ...
}
def otherState: Receive = LoggingReceive.withLabel("other") {
case msg => // Do something else ...
}
//#logging-receive
}