Gatling not logging request/response body

I am debugging a Gatling script which is complaining about invalid request. I want to capture the request/response body to find out what is going wrong. I used logback.xml in its default configuration with the two highlighted lines uncommented. But nothing is getting logged at all. I am stuck with this since yesterday. Posted on stackoverflow as well but no response yet [].

<statusListener class="ch.qos.logback.core.status.NopStatusListener" />

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern>

<!-- Uncomment for logging ALL HTTP request and responses -->
<b><logger name="io.gatling.http.ahc" level="TRACE" />
<logger name="io.gatling.http.response" level="TRACE" /></b>
<!-- Uncomment for logging ONLY FAILED HTTP request and responses -->
<!-- <logger name="io.gatling.http.ahc" level="DEBUG" /> -->
<!-- <logger name="io.gatling.http.response" level="DEBUG" /> -->

<root level="DEBUG">
    <appender-ref ref="CONSOLE" />

Works for me, the problem is on your side.
Trying removing your statusListener so you can figure out possible logback configuration issues.

Thanks for the quick response Stephane.

I removed statusListener and found that there were multiple SLF4J bindings for StaticLoggerBinder.class. I can remove the first binding but how to I get ContextSelectorStaticBinder? Is this the possible problem?

GATLING_HOME is set to “C:\Gatling\gatling-charts-highcharts-bundle-2.2.2”
JAVA = ““C:\Program Files\Java\jdk1.8.0_74\bin\java.exe””
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Gatling/gatling-charts-highcharts-bundle-2.2.2/lib/test-utils-!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Gatling/gatling-charts-highcharts-bundle-2.2.2/lib/logback-classic-1.1.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]