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!
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!