title: logs not getting generated by LoggerFactory
body: <p>I am using slf4j for generating logs and using Loggerfactory class.</p>
  
  <p>Here is my code</p>
  
  <pre><code>@Override
      public void afterScenario(ScenarioResult result, ScenarioContext context) {
        LoggerFactory.getLogger(getClass()).info("The Result of Scenario",result.getError());
  }
  </code></pre>
  
  <p>I am getting below output</p>
  
  <pre><code>The Result of Scenario
  </code></pre>
  
  <p>but not getting the result.getError()</p>
  
  <p>Below is my logback-test.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
  
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
          &lt;file&gt;target/karate.log&lt;/file&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;    
      &lt;logger name="com.intuit" level="DEBUG"/&gt;
      &lt;logger name="demo" level="DEBUG"/&gt;
      &lt;logger name="mock" level="DEBUG"/&gt;
  
      &lt;root level="info"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/root&gt;
      &lt;root level="error"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/root&gt;
  
  &lt;/configuration&gt;
  
  </code></pre>