parent
2a0e967be3
commit
b99db2a501
2 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,6 @@ package docs.akka.typed
|
||||||
|
|
||||||
//#fiddle_code
|
//#fiddle_code
|
||||||
//#imports
|
//#imports
|
||||||
import akka.actor.testkit.typed.scaladsl.LogCapturing
|
|
||||||
import akka.actor.typed.scaladsl.Behaviors
|
import akka.actor.typed.scaladsl.Behaviors
|
||||||
import akka.actor.typed.scaladsl.LoggerOps
|
import akka.actor.typed.scaladsl.LoggerOps
|
||||||
import akka.actor.typed.{ ActorRef, ActorSystem, Behavior }
|
import akka.actor.typed.{ ActorRef, ActorSystem, Behavior }
|
||||||
|
|
@ -16,6 +15,7 @@ import akka.actor.typed.{ ActorRef, ActorSystem, Behavior }
|
||||||
import akka.NotUsed
|
import akka.NotUsed
|
||||||
import akka.Done
|
import akka.Done
|
||||||
import akka.actor.typed.{ DispatcherSelector, Terminated }
|
import akka.actor.typed.{ DispatcherSelector, Terminated }
|
||||||
|
import akka.actor.testkit.typed.scaladsl.LogCapturing
|
||||||
|
|
||||||
import org.scalatest.WordSpecLike
|
import org.scalatest.WordSpecLike
|
||||||
import akka.actor.testkit.typed.scaladsl.ActorTestKit
|
import akka.actor.testkit.typed.scaladsl.ActorTestKit
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,8 @@ The console output may look like this:
|
||||||
[INFO] [03/13/2018 15:50:05.816] [hello-akka.actor.default-dispatcher-6] [akka://hello/user/Akka] Greeting 3 for Akka
|
[INFO] [03/13/2018 15:50:05.816] [hello-akka.actor.default-dispatcher-6] [akka://hello/user/Akka] Greeting 3 for Akka
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You will also need to add a @ref:[logging dependency](logging.md) to see that output when running.
|
||||||
|
|
||||||
@@@ div { .group-scala }
|
@@@ div { .group-scala }
|
||||||
|
|
||||||
#### Here is another example that you can edit and run in the browser:
|
#### Here is another example that you can edit and run in the browser:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue