log4j

<appender name="errordb" class="org.apache.log4j.jdbc.JDBCAppender">
<param name="encoding" value="gbk"/>
<param name="driver" value="com.mysql.jdbc.Driver"/>
<param name="URL" value=""/>
<param name="user" value=""/>
<param name="password" value=""/>
<layout class="org.apache.log4j.PatternLayout"/>
<param name="sql" value=""/>
</appender>
<logger name="error500"> 
        <appender-ref ref="errordb"/> 
    </logger>

你可能感兴趣的:(log4j)