On Tue, Apr 24, 2012 at 2:04 PM, Glen Mazza <gma...@talend.com> wrote:
> Hi, the Confluence on on the logging component
> (http://camel.apache.org/log.html#Log-Formatting) gives
> two relatively new options:  showStreams (since Camel 2.8) and showFiles
> (Camel 2.9) that can be set to true or false.
>
> Just below the table, it says however:
>
> "Camel will by default not log stream or files bodies. You can force Camel
> to log those by setting
> the property on the CamelContext properties:
>  camelContext.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, true);"
>
> Question: Does a user need to do *both* the setting of showStreams/showFiles
> *and* Exchange.LOG_DEBUG_BODY_STREAMS
> to activate logging of streams/files, or is the instruction below the table
> just for those versions of Camel before
> showStreams and showFiles were available?  I'll update the wiki once
> informed.
>

No in Camel 2.8 or better you should use the showStreams option.
In older releases you needed to use that other way using the
Exchange.LOG_DEBUG_BODY_STREAMS property on the CamelContext.
That property was therefore made easier in Camel 2.8 onwards with that
option instead.

You cannot do both.


> Thanks,
> Glen
>
> --
> Glen Mazza
> Talend Community Coders
> coders.talend.com
> blog: www.jroller.com/gmazza
>



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to