title: how to log the body of a stream in camel using a Tracer?
body: <p>I know how to get Apache Camel (2.10.3) to log the body of a stream (soap message) using the Log component. However, I want to use the Tracer instead of Log.</p>
  
  <p>The <a href="http://camel.apache.org/tracer.html" rel="nofollow">docs</a> say to enable the LOG_DEBUG_BODY_STREAMS property, I did that but that doesn't seem to make a difference:</p>
  
  <pre><code>    &lt;bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer"&gt;
      &lt;property name="traceOutExchanges" value="true"/&gt;
      &lt;property name="traceExceptions" value="true"/&gt;
      &lt;property name="logStackTrace" value="true"/&gt;
      &lt;property name="traceInterceptors" value="true"/&gt;
      &lt;property name="logLevel" value="TRACE"/&gt;
      &lt;property name="logName" value="xxx.cameltracer"/&gt;
  &lt;/bean&gt;     
  
  &lt;bean id="traceFormatter" class="org.apache.camel.processor.interceptor.DefaultTraceFormatter"&gt;
      &lt;property name="showBody" value="true"/&gt;
      &lt;property name="showOutBody" value="true"/&gt;
      &lt;property name="showBodyType" value="false"/&gt;
      &lt;property name="showBreadCrumb" value="true"/&gt;
      &lt;property name="showHeaders" value="false"/&gt;
  &lt;/bean&gt; 
  
  &lt;camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring" streamCache="true" trace="true"&gt;
      &lt;properties&gt;
         &lt;property key="CamelLogDebugBodyStreams" value="true"/&gt;
      &lt;/properties&gt;
      ...
  </code></pre>
  
  <p>Anything else I need to configure?</p>