Name

Log — Creates log messages using the Simple language

Usage

The Log pattern uses a simple language expression to write messages to the log. Messages are logged at INFO level.

The Log pattern can be placed anywhere in the body of a route.

Properties

Table 8 describes the properties you can specify using the properties editor.

Table 8. Log Properties

NameDescription
MessageSpecifies a Simple language expression that defines the log message.
MarkerSpecifies the name of an optional marker used to enrich logging messages. Conforming SLF4J logging implementations determine how the information conveyed by markers is used.
Inherit Error HandlerSpecifies whether the node should use the error handler configured for the route. The default is Disabled.
Log NameSpecifies the name of the log into which messages are written.
Logging Level

Specifies the logging level at which the message is recorded.

  • DEBUG

  • ERROR

  • INFO

  • TRACE

  • WARN

  • OFF

IdSpecifies a unique identifier for the log. The Id can be used to refer to the log in the Camel XML file.
DescriptionSpecifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.