使用mybatis的时候log4j.xml是做什用的?

18289753290 2014-05-24
log4j.xml:
  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name="appender" class="org.apache.log4j.ConsoleAppender">
    <param name="threshold" value="ERROR"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
                value="[cmall] %p [%t] %c{1}.%M(%L) | %m%n"/>
        </layout>
    </appender>
  <category name="com.ibatis">
        <priority value="DEBUG"/>
        <appender-ref ref="appender"/>
    </category>
   
    <category name="java.sql">
        <priority value="DEBUG"/>
        <appender-ref ref="appender"/>
    </category>
   
    <category name="com">
        <priority value="DEBUG"/>
        <appender-ref ref="appender"/>
    </category>   
<root>
    <level value="ERROR" />
        <appender-ref ref="appender"/>
    </root>
</log4j:configuration>
这些都是什么意思啊,没看懂。请教各位先辈解惑!
Global site tag (gtag.js) - Google Analytics