Hi all, I'm constrained to Scala 2.9.2 and Akka 2.0.5 on my project and I am confused how unhandled messages are intended to be logged.
It seems that in order to get any form of logging, the receive method must use the LoggingReceive wrapper. This then shows handled and unhandled messages in the logs thanks to akka.actor.debug.receive. This is a bit of a pain as I'd rather not have to use a wrapper in the code to enable logging, I'd expect it to be a purely configuration setting. But even without the LoggingReceive, the unhandled messages are being sent to context.system.eventStream.publish(UnhandledMessage(message, sender, self)) from the Actor's default "unhandled" body. But this never seems to be logged? Changing akka.actor.debug.unhandled does nothing (maybe this was added in 2.1?) nor does changing akka.actor.debug.event-stream. Given that catching unhandled messages is a critical part of the dev / test cycle, I'm really very keen to be able to log these messages. I've resorted to overriding the unhandled method and using the SLF4J logger in there, but what is the "correct" way to do this? Best regards, Sam -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
