title: How to enable MyBatis SQL logs in jboss?
body: <p>I am not able to see the SQL generated by MyBatis in JBoss server logs , 
  I have added below in jboss-log4j.xml to enable it , it did work before but for some reason have stopped working. Is there any other configuration we need to do to enable it.</p>
  
  <pre><code> &lt;logger name="org.apache.ibatis"&gt; 
        &lt;level value="debug"/&gt; 
        &lt;appender-ref ref="CONSOLE"/&gt; 
      &lt;/logger&gt; 
  
      &lt;logger name="java.sql"&gt; 
        &lt;level value="debug"/&gt; 
        &lt;appender-ref ref="CONSOLE"/&gt; 
      &lt;/logger&gt; 
  
      &lt;logger name="java.sql.Statement"&gt; 
        &lt;level value="debug"/&gt; 
        &lt;appender-ref ref="CONSOLE"/&gt; 
      &lt;/logger&gt;
  
  
     &lt;root&gt;
        &lt;!-- 
           Set the root logger priority via a system property. Note this is parsed by log4j,
           so the full JBoss system property format is not supported; e.g.
           setting a default via ${jboss.server.log.threshold:WARN} will not work.         
         --&gt;
        &lt;priority value="${jboss.server.log.threshold}"/&gt;
        &lt;appender-ref ref="CONSOLE"/&gt;
        &lt;appender-ref ref="FILE"/&gt;
     &lt;/root&gt;
  </code></pre>