My understanding is the log4j properties file in storm installation will be used when deployed to the cluster. You can still use
log.info in your project to write to the log files. They would be written to the worker-logs file in the supervisor nodes.
On Wednesday, October 24, 2012 9:00:39 AM UTC-7, MitchBit wrote:
Hi!
First of all thanks a lot to the devs for this awesome framework. However, I have a few questions:
I know, theres no guarantee of cleanup() being called in cluster-mode, but what are the chances? Is it more like "usually" or "barely ever"? Is it (usually/barelt/whatever) called, when running "storm kill" from nimbus or is it also possible to call "killTopology" method from within the main of the topology code? (Is the latter a good idea or rather a "no-go"?)
Second, in the jar-bundled project I configure log4j to use fileappender - will this jar-contained config be used when deploying the topology? Or will the log4j properties file in storm installation /storm/storm-0.8.1/log4j be used?
Basically, I'd like to use log.info to write some figures to the logs when cleanup() is called - how can this be done?