Logging Channel Adapter - How to get channel name?
I've setup a global channel interceptor that sends all messages to a logging channel. I then am using the logging channel adapter to log all messages that are coming through my system. This is nice for message debugging as it allows me to see the message payload and their headers as they pass through my defined workflow.
The logs produced from this logging channel adapter don't include the channel where the message was encountered. Is there a way to log not only the full message but also the channel where message was received?
Here's my setup:
Code:
<channel id="loggingChannel" />
<channel-interceptor pattern="*" order="3">
<bean class="org.springframework.integration.channel.interceptor.WireTap">
<constructor-arg ref="loggingChannel" />
</bean>
</channel-interceptor>
<logging-channel-adapter channel="loggingChannel" level="INFO" log-full-message="true"/>