log4j

<appendername="errordb"class="org.apache.log4j.jdbc.JDBCAppender">

<paramname="encoding"value="gbk"/>

<paramname="driver"value="com.mysql.jdbc.Driver"/>

<paramname="URL"value=""/>

<paramname="user"value=""/>

<paramname="password"value=""/>

<layoutclass="org.apache.log4j.PatternLayout"/>

<paramname="sql"value=""/>

</appender>

<loggername="error500">

<appender-refref="errordb"/>

</logger>