<?xml version="1.0" encoding="UTF-8"?><!--
- Copyright 1999-2011 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"><log4j:configurationxmlns:log4j="http://jakarta.apache.org/log4j/"debug="false"><appendername="CONSOLE"class="org.apache.log4j.ConsoleAppender"><layoutclass="org.apache.log4j.PatternLayout"><paramname="ConversionPattern"value="[%d{dd/MM/yy hh:mm:ss:sss z}] %t %5p %c{2}: %m%n" /></layout></appender><appendername="MYBATIS"class="org.apache.log4j.ConsoleAppender"><layoutclass="org.apache.log4j.PatternLayout"><paramname="ConversionPattern"value="%d %p [%c] - %m%n" /></layout></appender><loggername="log4j.logger.com.ibatis"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.com.ibatis.common.jdbc.SimpleDataSource"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.com.ibatis.common.jdbc.ScriptRunner"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.java.sql.Connection"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.java.sql.Statement"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><loggername="log4j.logger.java.sql.PreparedStatement"additivity="false"><levelvalue="DEBUG" /><appender-refref="MYBATIS" /></logger><root><levelvalue="INFO" /><appender-refref="CONSOLE" /><appender-refref="MYBATIS" /></root></log4j:configuration>
Log4j.xml<?xml version="1.0" encoding="UTF-8"?><!-- - Copyright 1999-2011 Alibaba Group. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in