Spring integration Logging message channel ID

孤街醉人 提交于 2019-12-13 04:23:15

问题


I am using <logging-channel-adapter logger-name="feedlogger" level="INFO" log-full-message="true"/> to log full messages using log4j framework.
Is there any way to log the 'id' of each and every message channel, used in spring intergration flow, in the log file?

Thanks,
Mitesh


回答1:


The question is not clear. Channels are beans and if you would like to get their ids logged, there is just enough to turn on a info for the org.springframework and bean ids will be logged on the application start up. In addition Spring Integration with the debug for the org.springframework.integration shows log messages about subscribers on the channel during the same start up phase.

However if your question would sound like this:

How to log channels each massage passes through?

Then you need to take a look into the Message History EI pattern implementation.



来源:https://stackoverflow.com/questions/52038843/spring-integration-logging-message-channel-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!