URI format - 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
log:loggingCategory[?options]

Where loggingCategory is the name of the logging category to use. You can append query options to the URI in the following format, ?option=value&option=value&...

Note

As of Camel 2.12.4/2.13.1, if there's single instance of org.slf4j.Logger found in the Registry, the loggingCategory is no longer used to create logger instance. The registered instance is used instead. Also it is possible to reference particular Logger instance using ?logger=#myLogger URI parameter. Eventually, if there's no registered and URI logger parameter, the logger instance is created using loggingCategory.

For example, a log endpoint typically specifies the logging level using the level option, as follows:

log:org.apache.camel.example?level=DEBUG

The default logger logs every exchange ( regular logging ). But Camel also ships with the Throughput logger, which is used whenever the groupSize option is specified.

Note

There is also a log directly in the DSL, but it has a different purpose. It is meant for lightweight and human logs. See more details at Log.

And where option can be:

Table 15. 

Option

Default

Type

Description

level

INFO

String

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

marker

null

String

An optional Marker name to use.

groupSize

null

Integer

An integer that specifies a group size for throughput logging.

groupInterval

null

Integer

If specified will group message stats by this time interval (in milliseconds)

groupDelay

0

Integer

Set the initial delay for stats (in milliseconds)

groupActiveOnly

true

boolean

If true, will hide stats when no new messages have been received for a time interval, if false, show stats regardless of message traffic.

logger

logger

Camel 2.12.4/2.13.1: An optional reference to org.slf4j.Logger from Registry to use.


Note: groupDelay and groupActiveOnly are only applicable when using groupInterval