jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1157075 - in /jackrabbit/sandbox/spi2microkernel: pom.xml src/test/resources/log4j.xml
Date Fri, 12 Aug 2011 12:38:30 GMT
Author: mduerig
Date: Fri Aug 12 12:38:29 2011
New Revision: 1157075

URL: http://svn.apache.org/viewvc?rev=1157075&view=rev
Log:
spi2microkernel (WIP)
- tests: add log4j configuration

Added:
    jackrabbit/sandbox/spi2microkernel/src/test/resources/log4j.xml
Modified:
    jackrabbit/sandbox/spi2microkernel/pom.xml

Modified: jackrabbit/sandbox/spi2microkernel/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/pom.xml?rev=1157075&r1=1157074&r2=1157075&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/pom.xml (original)
+++ jackrabbit/sandbox/spi2microkernel/pom.xml Fri Aug 12 12:38:29 2011
@@ -80,11 +80,17 @@
         <!-- test dependencies -->
         <dependency>
             <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
+            <artifactId>slf4j-log4j12</artifactId>
             <version>1.6.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.16</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.5</version>

Added: jackrabbit/sandbox/spi2microkernel/src/test/resources/log4j.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/resources/log4j.xml?rev=1157075&view=auto
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/resources/log4j.xml (added)
+++ jackrabbit/sandbox/spi2microkernel/src/test/resources/log4j.xml Fri Aug 12 12:38:29 2011
@@ -0,0 +1,53 @@
+<?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 "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+    <!-- ====================================================================== -->
+    <!-- A P P E N D E R S                                                      -->
+    <!-- ====================================================================== -->
+
+    <appender name="console" class="org.apache.log4j.ConsoleAppender">
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} *%-5p* %c{1}:
%m (%F, line %L)%n"/>
+        </layout>
+    </appender>
+
+    <appender name="file" class="org.apache.log4j.FileAppender">
+        <param name="File" value="unit-tests.log" />
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} *%-5p* %c{1}:
%m (%F, line %L)%n"/>
+        </layout>
+    </appender>
+
+    <!-- ====================================================================== -->
+    <!-- L O G G E R S                                                          -->
+    <!-- ====================================================================== -->
+    
+    <root>
+        <level value="debug" />
+        <!--
+        <appender-ref ref="console"/>
+        -->
+        <appender-ref ref="file"/>
+    </root>
+
+</log4j:configuration>



Mime
View raw message