Formatting - 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

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

Shows the Message Exchange Pattern (or MEP for short).

showProperties

false

Show the exchange properties.

showHeaders

false

Show the In message headers.

skipBodyLineSeparator

true

Camel 2.12.2: Whether to skip line separators when logging the message body. This allows to log the message body in one line, setting this option to false will preserve any line separators from the body, which then will log the body as is.

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

If the exchange has an exception, show the exception message (no stack trace).

showCaughtException

false

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 (using the key Exchange.EXCEPTION_CAUGHT) and for instance a doCatch can catch exceptions. See Try Catch Finally.

showStackTrace

false

Show the stack trace, if an exchange has an exception. Only effective if one of showAll, showException or showCaughtException are enabled.

showFiles

false

Whether Camel should show file bodies or not (eg such as java.io.File).

showFuture

false

Whether Camel should show java.util.concurrent.Future bodies or not. If enabled Camel could potentially wait until the Future task is done. By default, this will not wait.

showStreams

false

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 will have to use Stream Caching.

multiline

false

If true, each piece of information is logged on a new line.

maxChars

 

Limits the number of characters logged per line.

Starting with Camel 2.11, more advanced customization of the logging is possible, see the Camel website for more details.