title: how to configure log4j for Mybatis to print my SQL
body: <p>My project is set up with SpringMVC+Mybatis+EXTJS4. This is my configuration:</p>
  
  <pre><code># Rules reminder:
  # DEBUG &lt; INFO &lt; WARN &lt; ERROR &lt; FATAL
  
  # Global logging configuration
  log4j.rootLogger=DEBUG,stdout
  
  
  log4j.logger.org.apache.ibatis=DEBUG,stdout
  log4j.logger.java.sql=DEBUG,stdout 
  
  #log4j.additivity.com.ibatis = false
  #log4j.additivity.java.sql = false
  
  ## Console output...
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%5p %d %C: %m%n
  </code></pre>
  
  <p>but it does not print SQL in Console,can any one help me? thanks lot</p>