You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ychawla <pr...@yahoo.com> on 2012/02/21 17:16:45 UTC

Camel log - part of body

Hello All,
In my camel routes, I use the log component quite a bit.  For example:

<camel:log message="This is the body: ${body}"/>

Is there a way with the simple language to only print out the first 100
characters or so of the body?  I have some large XML file coming through
that are really clogging up my logs.

Thanks,
Yogesh

--
View this message in context: http://camel.465427.n5.nabble.com/Camel-log-part-of-body-tp5502660p5502660.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel log - part of body

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

See this FAQ
http://camel.apache.org/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.html


On Tue, Feb 21, 2012 at 5:16 PM, ychawla <pr...@yahoo.com> wrote:
> Hello All,
> In my camel routes, I use the log component quite a bit.  For example:
>
> <camel:log message="This is the body: ${body}"/>
>
> Is there a way with the simple language to only print out the first 100
> characters or so of the body?  I have some large XML file coming through
> that are really clogging up my logs.
>
> Thanks,
> Yogesh
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-log-part-of-body-tp5502660p5502660.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/