In Akka (Java), how can I get my watchers to log any exceptions?

The Akka documentation explains how to register from within the actor ( http://doc.akka.io/docs/akka/snapshot/java/logging.html ). But how can I register from a supervisor?

I basically want to log any exceptions that are caught by the supervisor.

+3
source share
1 answer

I think I found the answer, and realized that my question may not be right. I need SupervisorStrategy to actually throw an exception. When I create my UntypedActor supervisor, it can define a SupervisorStrategy that should have access to the (final) Logger of the attached UntypedActor.

0
source

All Articles