| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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 'http://logging.apache.org/log4j/1.2/log4j.dtd'> |
| |
| <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/' debug="true"> |
| |
| <appender name="DB" class="org.apache.log4j.db.DBAppender"> |
| <param name="locationInfo" value="true"/> |
| <connectionSource class="org.apache.log4j.db.DriverManagerConnectionSource"> |
| <param name="driverClass" value="org.hsqldb.jdbcDriver"/> |
| <param name="url" value="jdbc:hsqldb:mem:testdb"/> |
| <param name="user" value="sa"/> |
| <param name="password" value=""/> |
| </connectionSource> |
| </appender> |
| |
| <appender name="VECTOR" class="org.apache.log4j.VectorAppender"> |
| </appender> |
| |
| <!-- Prevent internal log4j DEBUG messages from polluting the output. --> |
| <logger name="org.apache.log4j.joran"><level value="INFO" /></logger> |
| <logger name="org.apache.log4j.config"><level value="INFO" /></logger> |
| <logger name="org.apache.log4j.db.DBAppender"><level value="INFO" /></logger> |
| |
| <root> |
| <level value ="debug"/> |
| <appender-ref ref="DB" /> |
| <appender-ref ref="VECTOR" /> |
| </root> |
| </log4j:configuration> |
| |
| |