Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Default

Type

Description

level

INFO

String

Logging level to use. Possible values: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, OFF

groupSize

null

Integer

An integer that specifies a group size for throughput logging. By default regular logging is used.

...

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

Samples

...

Regular logger sample

In the route below we logs the incoming orders at DEBUG level before the order is processed.

Code Block
java
java

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

And using Spring DSL as the route:

Code Block
xml
xml

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

Throughput logger sample

Include Page
CAMEL:Endpoint See Also
CAMEL:Endpoint See Also

...