Author: justin
Date: Mon Aug 23 14:39:54 2010
New Revision: 988135

URL: http://svn.apache.org/viewvc?rev=988135&view=rev
Log:
using logback in testing

Added:
    sling/trunk/installer/jcr/jcrinstall/src/test/resources/
    sling/trunk/installer/jcr/jcrinstall/src/test/resources/logback-test.xml
Modified:
    sling/trunk/installer/jcr/jcrinstall/pom.xml

Modified: sling/trunk/installer/jcr/jcrinstall/pom.xml
URL: 
http://svn.apache.org/viewvc/sling/trunk/installer/jcr/jcrinstall/pom.xml?rev=988135&r1=988134&r2=988135&view=diff
==============================================================================
--- sling/trunk/installer/jcr/jcrinstall/pom.xml (original)
+++ sling/trunk/installer/jcr/jcrinstall/pom.xml Mon Aug 23 14:39:54 2010
@@ -101,12 +101,25 @@
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
+      <version>1.5.11</version>
+    </dependency>
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-classic</artifactId>
+      <version>0.9.20</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.sling</groupId>
       <artifactId>org.apache.sling.commons.testing</artifactId>
       <version>2.0.5-SNAPSHOT</version>
       <scope>test</scope>
+      <exclusions>
+        <exclusion>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.apache.sling</groupId>

Added: sling/trunk/installer/jcr/jcrinstall/src/test/resources/logback-test.xml
URL: 
http://svn.apache.org/viewvc/sling/trunk/installer/jcr/jcrinstall/src/test/resources/logback-test.xml?rev=988135&view=auto
==============================================================================
--- sling/trunk/installer/jcr/jcrinstall/src/test/resources/logback-test.xml 
(added)
+++ sling/trunk/installer/jcr/jcrinstall/src/test/resources/logback-test.xml 
Mon Aug 23 14:39:54 2010
@@ -0,0 +1,33 @@
+<?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.
+  -->
+<configuration>
+
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <file>target/sling-tests.log</file>
+        <encoder>
+            <pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) 
%msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <logger name="org.apache.sling.jcr.jcrinstall.impl" level="DEBUG" />
+
+    <root level="INFO">
+        <appender-ref ref="STDOUT" />
+    </root>
+
+</configuration>
\ No newline at end of file


Reply via email to