...
Which will construct a String message at runtime using the Simple language. The log message will by logged at INFO
level using the route id as the log name. By default a route is named route-1
, route-2
etc. But you can use the routeId("myCoolRoute")
to set a route name of choice.
Info | ||
---|---|---|
| ||
The |
The log DSL have overloaded methods to set the logging level and/or name as well.
...
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
...
Include Page | ||||
---|---|---|---|---|
|