...
Option | Default | Description |
---|---|---|
showExchangeId | false | To output the unique exchange id. |
showProperties | false | Output the exchange properties |
showHeaders | false | Output the in message headers |
showBodyType | true | Output the in body Java type |
showBody | true | Output the in body |
showOut | false | If the exchange has an out message then its also shown |
showAll | false | quick option for turning all options on |
multiline | false | if enabled then each information is logged on a newline new line |
Regular logger sample
In the route below we logs the incoming orders at DEBUG level before the order is processed.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<route> <from uri="activemq:orders"/> <to uri="log:com.mycompany.order?level=DEBUG"/> <to uri="bean:processOrder"/> </route> |
Throughput logger sample
In the route below we log the throughput of the incoming orders at DEBUG level grouped by 10 messages.
Code Block | ||||
---|---|---|---|---|
| ||||
from("activemq:orders").to("log:com.mycompany.order?level=DEBUG?groupSize=10").to("bean:processOrder");
|
Regular logger with formatter sample
In the route below we logs the incoming orders at INFO level before the order is processed.
Code Block | ||||
---|---|---|---|---|
| ||||
from("activemq:orders").to("log:com.mycompany.order?showAll=true&multiline=true").to("bean:processOrder");
|
Include Page | ||||
---|---|---|---|---|
|
...