...
Code Block | ||||
---|---|---|---|---|
| ||||
<route> <from uri="activemq:orders"/> <to uri="log:com.mycompany.order?level=DEBUG"/> <to uri="bean:processOrder"/> </route> |
...
Regular logger with formatter sample
In the route below we log logs the throughput of the incoming orders at DEBUG level grouped by 10 messagesINFO level before the order is processed.
Code Block | ||||
---|---|---|---|---|
| ||||
from("activemq:orders").to("log:com.mycompany.order?level=DEBUG?groupSize=10showAll=true&multiline=true").to("bean:processOrder"); |
...
Throughput logger
...
sample
In the route below we logs log the throughput of the incoming orders at INFO level before the order is processedDEBUG level grouped by 10 messages.
Code Block | ||||
---|---|---|---|---|
| ||||
from("activemq:orders").to("log:com.mycompany.order?showAll=true&multiline=truelevel=DEBUG?groupSize=10").to("bean:processOrder"); |
...