log4j.xmlをつぎのようにする。
xml version="1.0" encoding="UTF-8"
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4jconfiguration xmlnslog4j="http://jakarta.apache.org/log4j/">
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t] (%F:%L) - %m%n" />
</layout>
</appender>
<category name="java.sql" additivity="false">
<priority value="debug" />
<appender-ref ref="STDOUT" />
</category>
<category name="com.ibatis" additivity="false">
<priority value="debug" />
<appender-ref ref="STDOUT" />
</category>
</log4jconfiguration>