title: Gatling - Log body of request in simulation.log or console
body: <p>I would like to see what is in the body of the post that I am sending in my script. In fact, I would like to see the request, request body and response. From looking at the docs and the forums, I see that I can uncomment a line in logback-test.xml which I did as shown below</p>
  
  <p>
  </p>
  
  <pre><code>&lt;contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"&gt;
      &lt;resetJUL&gt;true&lt;/resetJUL&gt;
  &lt;/contextListener&gt;
  
  &lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx&lt;/pattern&gt;
          &lt;immediateFlush&gt;false&lt;/immediateFlush&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  
  &lt;!-- Uncomment for logging ALL HTTP request and responses --&gt;
  &lt;logger name="io.gatling.http" level="TRACE" /&gt; 
  &lt;!-- Uncomment for logging ONLY FAILED HTTP request and responses --&gt;
      &lt;!--&lt;logger name="io.gatling.http" level="DEBUG" /&gt; --&gt; 
  
  &lt;root level="DEBUG"&gt;
      &lt;appender-ref ref="CONSOLE" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>The simulation.log file nor the console shows me the request, response etc. After a bit of googling and reading documentation, I saw that I could do this -</p>
  
  <pre><code>.extraInfoExtractor(extraInfo =&gt; List(extraInfo.request, extraInfo.response,extraInfo.session))
  </code></pre>
  
  <p>This provides me with pretty much everything except the request body. How do I get the request body? I am trying to debug an issue where I am sure the body that is getting sent is not what I actually want. </p>