Results 1 to 2 of 2

Thread: Logging Channel Adapter - How to get channel name?

  1. #1
    Join Date
    Jul 2010
    Posts
    139

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •