I'm using Akka FSM with Scala and logging using the log
member of the FSM
trait, i.e. an instance of akka.event.Logging
.
When calling context.system.shutdown()
to shutdown the actor system when the application wants to terminate normally, it seems that latest log messages are sometimes lost (and not printed out at all).
Is there way to guarantee that all log messages are always printed out before the system is shutdown?