这是 Camel Spring DSL 中正确的日志记录行为吗?
Is this the correct logging behaviour in Camel Spring DSL?
我使用 Spring DSL 观看了这个有趣的日志记录行为:
<log message=”${exchange}”/> gives the exchange id
<log message=”${header}”/> gives the headers
<log message=”${body}”/> gives the body
而且,因为它很有趣,让我们再做一次:
<log message=”${exchange}”/> gives the exchange id
<log message=”${header}”/> gives the headers
<log message=”${body}”/> gives nothing
正文已被空字符串覆盖为第一个日志语句。这是预期的行为吗?我猜不是?
是的,这是预期的行为。请参阅此常见问题解答,了解为什么您会得到空体:http://camel.apache.org/why-is-my-message-body-empty.html
我使用 Spring DSL 观看了这个有趣的日志记录行为:
<log message=”${exchange}”/> gives the exchange id
<log message=”${header}”/> gives the headers
<log message=”${body}”/> gives the body
而且,因为它很有趣,让我们再做一次:
<log message=”${exchange}”/> gives the exchange id
<log message=”${header}”/> gives the headers
<log message=”${body}”/> gives nothing
正文已被空字符串覆盖为第一个日志语句。这是预期的行为吗?我猜不是?
是的,这是预期的行为。请参阅此常见问题解答,了解为什么您会得到空体:http://camel.apache.org/why-is-my-message-body-empty.html