jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r1376936 - in /jackrabbit/oak/trunk/oak-mk/src/test/resources: ./ logback-test.xml
Date Fri, 24 Aug 2012 14:22:21 GMT
Author: dpfister
Date: Fri Aug 24 14:22:21 2012
New Revision: 1376936

URL: http://svn.apache.org/viewvc?rev=1376936&view=rev
Log:
Add configuration for logger with INFO default level

Added:
    jackrabbit/oak/trunk/oak-mk/src/test/resources/
    jackrabbit/oak/trunk/oak-mk/src/test/resources/logback-test.xml

Added: jackrabbit/oak/trunk/oak-mk/src/test/resources/logback-test.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/resources/logback-test.xml?rev=1376936&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/resources/logback-test.xml (added)
+++ jackrabbit/oak/trunk/oak-mk/src/test/resources/logback-test.xml Fri Aug 24 14:22:21 2012
@@ -0,0 +1,39 @@
+<!--
+   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="console" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="file" class="ch.qos.logback.core.FileAppender">
+        <file>target/unit-tests.log</file>
+        <encoder>
+            <pattern>%date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="INFO">
+        <!--
+        <appender-ref ref="console"/>
+        -->
+        <appender-ref ref="file"/>
+    </root>
+
+</configuration>



Mime
View raw message