PDA

View Full Version : Poller Cron heartbeat



leogags
Jul 7th, 2011, 07:25 AM
Hi,

I am using the spring integration poller with a cron. The cron is setup for every 5 seconds.

Is there a way I can log a message every 5 seconds to notify that the poller/cron is still running?

I am using log4j and with the following configuration:


<logger name="org.springframework.integration.channel" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="DAILYROLLFILE" />
</logger>



This gives me details of the payload when it arrives, which is great. However, I want to know if the poller is polling the directory every 5 seconds.

I tried this in the log4j but didnt work:


<logger name="org.springframework.scheduling.quartz" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="DAILYROLLFILE" />

Thanks!

oleg.zhurakousky
Jul 7th, 2011, 11:23 PM
We are not using Quartz so what you have will not work and I just checked we don't have any Log statements in ThreadPoolTaskScheduler or PollingConsumer.
Could you please open a JIRA 'Improvement' request t add a DEBUG level logging to teh Poller?

leogags
Jul 8th, 2011, 12:27 AM
Jira raised

https://jira.springsource.org/browse/INT-1964