Logging channel adapter
Logs messages.
Use for debugging purposes.
Log full message
Specify whether to log the full message.
This attribute and the expression attribute are mutually exclusive.
Setting this to true
is equivalent to setting an expression value of #root
since the message is the root object against which the expression will be evaluated. If no expression is provided, and this value is false
(the default), only the payload will be logged.
Expression
Provide a SpEL expression to be evaluated against the message as the root object. The evaluation result will be the information written to the log.
For example, the default behavior is equivalent to an expression of payload
, or an expression may evaluate against the payload itself (payload.address.city
) or headers (headers.foo
).
This attribute and the log full message attribute are mutually exclusive. See the documentation on the log full message attribute for more information.
Level
Specifies the log level.
Default : info
Logger name
Provide a name for the logger. This is useful when there are multiple logging channel adapters configured, and you would like to differentiate them within the actual log.
By default the logger name will be the fully qualified class name of the LoggingHandler
implementation.
Channel
Channel to consume messages from.
Required
Id
Name that uniquely identifies this flow component.
Required