Announcement Announcement Module
No announcement yet.
Logging Channel Adapter - How to get channel name? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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:
    <channel id="loggingChannel" />
    <channel-interceptor pattern="*" order="3">
      <bean class="">
        <constructor-arg ref="loggingChannel" />
    <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

    If you still have question feel free to ask.