You can use the .log in your routes, via the log EIP (
http://camel.apache.org/logeip.html).

I tested the route segment supplied in the original message (via
Camel 2.6.0-fuse-01-09) ::

   .setBody().simple("Say Hello")

   .log(LoggingLevel.DEBUG, "Message body: ${body}")

.. and it works as expected.   Original poster  -- I think there must be
some trivial problem with your code -- such as a '(' used instead of a '}'.

Please copy & paste the code snippet directly from your IDE if you can not
find the problem.


On Thu, Jan 26, 2012 at 1:41 PM, Chris Odom <chris.o...@mediadriver.com>wrote:

> Sorry was thinking Spring/Blueprint not Java DSL.
>
> you cant not really do a .log() in Java DSL you need to use a .to()
>
> go look at http://camel.apache.org/log.html
>
> try .to("log:PACKAGE?level=DEBUG&amp;showBody=true")
>
> where PACKAGE is the java package space for logging. ex:
> log:com.national?...
>
> --
> Thanks,
> Chris Odom
> 512:799-0270
>

Reply via email to