I was just looking through this.

If you look under the storm-install-dir/log4j2 directory there is a worker.xml 
file in there. You can remove the parameters for the log file name and hard 
code it. 

Alternatively, in the storm-install-dir/conf directory there is a storm_env.ini 
file. If you set STORM_JAR_JVM_OPTS: -Dlogfile.name=<some standard name>, then 
all files create will use this value.

I believe this will need to be configured on each supervisor but I am a bit 
uncertain about that.

Thanks,

Justin

> On Dec 23, 2015, at 22:52, hong mao <[email protected]> wrote:
> 
> When I run a topology on storm 0.10.0, each conponent's log is written to 
> ***-worker-***.log, mixed together with logs generated by storm framework.
> 
> I found it is very inconvenient to debug my topology, I have to search 
> carefully to find out which logs are my spout/bolt's logs .
> 
> Does anyone have a good solution for this case? Or are there any log4j 
> configuration to support this feature? So that I can print my log to files in 
> a seperated directory.
> 
> Thank you!

Reply via email to