The Akka documentation explains how to log from within an actor (http://doc.akka.io/docs/akka/snapshot/java/logging.html). But how can I log from within a supervisor?
I basically want to log any exceptions that are caught by the supervisor.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think I’ve found the answer, and realised my question was maybe not right. I needed the SupervisorStrategy to actually log the exception. When I create my supervisor UntypedActor it can define a SupervisorStrategy which should be able to access the (final) Logger of the enclosing UntypedActor.