Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using log DSL from Spring

...

In Spring DSL its also easy to use log DSL as shown below:

Code Block
xml
xml

        <route id="foo">
            <from uri="direct:foo"/>
            <log message="Got ${body}"/>
            <to uri="mock:foo"/>
        </route>

The log tag has attributes to set the message, loggingLevel and logName. For example:

Code Block

        <route id="baz">
            <from uri="direct:baz"/>
            <log message="Me Got ${body}" loggingLevel="FATAL" logName="cool"/>
            <to uri="mock:baz"/>
        </route>

See Also

TODO: