LibraryToggle FramesPrintFeedback
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.
groupInterval null Integer Camel 2.6: If specified will group message stats by this time interval (in millis)
groupDelay 0 Integer Camel 2.6: Set the initial delay for stats (in millis)
groupActiveOnly true boolean Camel 2.6: If true, will hide stats when no new messages have been received for a time interval, if false, show stats regardless of message traffic
[Note]Note

groupDelay and groupActiveOnly are only applicable when using groupInterval.

The log formats the execution of exchanges to log lines. By default, the log uses LogFormatter to format the log output, where LogFormatter has the following options:

Option Default Description
showAll false Quick option for turning all options on (multiline, maxChars has to be manually set if to be used).
showExchangeId false Show the unique exchange ID.
showExchangePattern true Camel 2.3: Shows the Message Exchange Pattern (or MEP for short).
showProperties false Show the exchange properties.
showHeaders false Show the In message headers.
showBodyType true Show the In body Java type.
showBody true Show the In body.
showOut false If the exchange has an Out message, show the Out message.
showException false Fuse Mediation Router 2.0: If the exchange has an exception, show the exception message (no stack trace).
showCaughtException false Fuse Mediation Router 2.0: If the exchange has a caught exception, show the exception message (no stack trace). A caught exception is stored as a property on the exchange and for instance a doCatch can catch exceptions. See Try Catch Finally.
showStackTrace false Fuse Mediation Router 2.0: Show the stack trace, if an exchange has an exception. Only effective if one of showAll, showException or showCaughtException are enabled.
showFuture false Camel 2.1: Whether Camel should show java.util.concurrent.Future bodies or not. If enabled Camel could potentially wait until the Future task is done. Will by default not wait.
showStreams false Camel 2.8: Whether Camel should show stream bodies or not (eg such as java.io.InputStream). Beware if you enable this option then you may not be able later to access the message body as the stream have already been read by this logger. To remedy this you have to use Stream Caching.
multiline false If true, each piece of information is logged on a new line.
maxChars Fuse Mediation Router 2.0: Limits the number of characters logged per line.
[Tip]Logging stream bodies

Camel will by default not log stream or files bodies. You can force Camel to log those by setting the property on the CamelContext properties

 camelContext.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, true);
 
 
Comments powered by Disqus