Regular logger sample - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

In the route below we log the incoming orders at DEBUG level before the order is processed:

from("activemq:orders")
   .to("log:com.mycompany.order?level=DEBUG")
   .to("bean:processOrder");

Or using Spring XML to define the route:

<route>
   <from uri="activemq:orders"/>
   <to uri="log:com.mycompany.order?level=DEBUG"/>
   <to uri="bean:processOrder"/>
</route>