Announcement Announcement Module
Collapse
No announcement yet.
Logging Channel Adapter - How to get channel name? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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"/>

  • #2
    Yes there is and not just a channel name but the full path. You have to enable Message History
    Read up on MessageHistory feature of Spring Integration 2.0 http://static.springsource.org/sprin...essage-history

    If you still have question feel free to ask.

    Comment

    Working...
    X