1. <?xml version="1.0" encoding="UTF-8" ?> 
  2.     <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> 
  3.  
  4. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> 
  5.     <!-- Console output --> 
  6.     <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> 
  7.         <layout class="org.apache.log4j.PatternLayout"> 
  8.             <param name="ConversionPattern" value="%-5p %d{MM-dd HH:mm:ss} %m  (%F:%L) \n" /> 
  9.         </layout> 
  10.     </appender> 
  11.     <category name="java.sql"> 
  12.         <priority value="debug" /> 
  13.     </category> 
  14.     <category name="com.ibatis"> 
  15.         <priority value="debug" /> 
  16.     </category> 
  17.     <root> 
  18.         <priority value="error" /> 
  19.         <appender-ref ref="STDOUT" /> 
  20.     </root> 
  21. </log4j:configuration>