Note that there are some explanatory texts on larger screens.

plurals
  1. POAkka logging resets during shutdown
    primarykey
    data
    text
    <p>Under Akka 2.10 my logging configuration is being reset during shutdown... resulting in potentially-important messages being written to standard output rather than the logging mechanism. </p> <p>For example, this code:</p> <pre><code>String settings = "akka.event-handlers = [\"akka.event.slf4j.Slf4jEventHandler\"]\n" + "akka.actor.provider = \"akka.cluster.ClusterActorRefProvider\""; Config config = ConfigFactory.parseString(settings); ActorSystem system = ActorSystem.create("testing", config); LoggingAdapter log = Logging.getLogger(system, new Object()); log.info("Via SlF4J"); system.shutdown(); Thread.sleep(1000); log.info("After shutdown"); </code></pre> <p>Produces this output:</p> <pre><code>17:24:11.999 [testing-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jEventHandler - Slf4jEventHandler started 17:24:12.151 [testing-akka.actor.default-dispatcher-4] INFO N.168.1.106:2552) - RemoteServerStarted@akka://testing@192.168.1.106:2552 17:24:12.155 [testing-akka.actor.default-dispatcher-4] INFO java.lang.Object - Via SlF4J [INFO] [04/12/2013 17:24:12.218] [testing-akka.actor.default-dispatcher-4] [NettyRemoteTransport(akka://testing@192.168.1.106:2552)] RemoteServerShutdown@akka://testing@192.168.1.106:2552 [INFO] [04/12/2013 17:24:13.156] [main] [Object(akka://testing)] After shutdown </code></pre> <p>The first three lines of output are via SLF4J (my configured logger), whereas the final two are via <code>akka.event.Logging$StandardOutLogger</code> -- which means that exceptions being logged during shutdown (and I am seeing a few, in some circumstances) are being lost to the logger.</p> <p>(It would also be nice to see the RemoteServerShutdown message logged correctly, of course.)</p> <p>Anybody have any insight into this behavior?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload