Announcement Announcement Module
Collapse
No announcement yet.
outbound-channel-adapter + logging-channel-adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • outbound-channel-adapter + logging-channel-adapter

    Hi all,

    I defined my below outbound-channel-adapter and a logging-channel-adapter:

    Code:
        <int:channel id="unmatchedMessageTypeChannel">
          <int:interceptors>
            <int:wire-tap channel="unmatchedMessageTypeChannel-logger"/>
          </int:interceptors>
        </int:channel>
    
        <int:logging-channel-adapter id="unmatchedMessageTypeChannel-logger"  expression="'### Unmatched Message Type Channel ### '" level="INFO"/>
    
        <!--  Dispatch message -->
        <file:outbound-channel-adapter id="unmatchedMessageTypeChannel" directory="file:${unmatchedMessageType.directory}"
           filename-generator-expression="'... + '.xml'"/>
    The channel works properly but I'm not able to see my logging expression defined at logging-channel-adapter level.

    If I enable org.springframework.integration.file at DEBUG level I can see details about:
    - FileWritingMessageHandler --> received message
    - FileWritingMessageHandler --> sending reply Message

    I would like to get the same info using an logging-channel-adapter but now I can't get either my simple expression '### Unmatched Message Type Channel ### '...

    Code:
    02.mag.2012 14:24:02,528 - (LISTENER SERVICE) (org.springframework.jms.listener.DefaultMessageListenerContainer#0-1) [DEBUG ]-[AbstractMessageHandler             (67  )] - [email protected]5770 received message: [Payload=<root/>][Headers={timestamp=1335961442496, id=4b0a674f-a939-4061-9cf8-d1d62b7dc606, JMSXDeliveryCount=1, ...]
    
    02.mag.2012 14:24:02,575 - (LISTENER SERVICE) (org.springframework.jms.listener.DefaultMessageListenerContainer#0-1) [DEBUG ]-[AbstractReplyProducingMessageHandler(156 )] - handler '[email protected]5770' sending reply Message: [Payload=C:\products\data\interfaces\unmatchedMessageType\queue_msg_ID_520191.1335961410354.0_02052012_142402.xml][Headers={timestamp=1335961442575, id=bed1b9e2-ecf1-4e9e-a89d-bd225f38ed03, JMSXDeliveryCount=1, jms_redelivered=false, ...]
    Any help ss greatly appreciated!!!

    Thanks and regards
    nuvola

  • #2
    Hello

    What is your default loggin level?

    <logging-channel-adapter> is loggining into org.springframework.integration.handler.LoggingHan dler category.
    Or decrease level on <logging-channel-adapter>, or increase default level, or you can set your own logger-name on the <logging-channel-adapter>.

    Good luck,
    Artem Bilan

    Comment

    Working...
    X