| <?xml version="1.0" encoding="UTF-8" ?> |
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
| <!-- |
| 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. |
| --> |
| |
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
| <appender name="A1" class="FileAppender"> |
| <param name="File" value="output/odbcTest.log" /> |
| <param name="Append" value="false" /> |
| <layout class="PatternLayout"> |
| <param name="ConversionPattern" value="%d %-5p %c{2} - %m%n"/> |
| </layout> |
| </appender> |
| <appender name="PreparedAppender" class="ODBCAppender"> |
| <param name="DSN" value="Log4cxxTest"/> |
| <!--param name="sql" value="INSERT INTO UnitTestLog (Thread,LogName,LogTime,LogLevel,FileName,FileLine,Message) VALUES (?,?,?,?,?,?,?)" /--> |
| <param name="sql" value="INSERT INTO ApplicationLogs.dbo.UnitTestLog (Thread,LogName,LogTime,LogLevel,FileName,FileLine,Message) VALUES (?,?,?,?,?,?,?)" /> |
| <param name="ColumnMapping" value="thread"/> |
| <param name="ColumnMapping" value="logger"/> |
| <param name="ColumnMapping" value="time"/> |
| <param name="ColumnMapping" value="level"/> |
| <param name="ColumnMapping" value="shortfilename"/> |
| <param name="ColumnMapping" value="line"/> |
| <param name="ColumnMapping" value="message"/> |
| </appender> |
| <appender name="ASYNC" class="AsyncAppender"> |
| <param name="BufferSize" value="1000"/> |
| <param name="Blocking" value="false"/> |
| <appender-ref ref="PreparedAppender"/> |
| </appender> |
| <logger name="DB"> |
| <level value="INFO" /> |
| <appender-ref ref="ASYNC" /> |
| </logger> |
| <root> |
| <priority value ="INFO" /> |
| <appender-ref ref="A1" /> |
| </root> |
| </log4j:configuration> |