You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2015/02/17 13:42:40 UTC

[31/50] [abbrv] jena git commit: Some comments about logging

Some comments about logging


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/537b4fc3
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/537b4fc3
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/537b4fc3

Branch: refs/heads/eliminate-assignments
Commit: 537b4fc382acaa6e0209329244aa92c31cf05ab4
Parents: dc540f9
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Tue Feb 10 12:31:21 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Tue Feb 10 12:31:21 2015 +0000

----------------------------------------------------------------------
 apache-jena-osgi/jena-osgi-test/pom.xml | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/537b4fc3/apache-jena-osgi/jena-osgi-test/pom.xml
----------------------------------------------------------------------
diff --git a/apache-jena-osgi/jena-osgi-test/pom.xml b/apache-jena-osgi/jena-osgi-test/pom.xml
index dad48a9..d04c918 100644
--- a/apache-jena-osgi/jena-osgi-test/pom.xml
+++ b/apache-jena-osgi/jena-osgi-test/pom.xml
@@ -39,8 +39,8 @@ limitations under the License.
     <pax.logging.version>1.8.1</pax.logging.version>
   </properties>
 
-  <dependencies>
 
+  <dependencies>
     <dependency>
       <groupId>org.apache.jena</groupId>
       <artifactId>jena-osgi</artifactId>
@@ -62,7 +62,19 @@ limitations under the License.
       <scope>test</scope>
     </dependency>
 
-    <!-- needed to get a org.slf4j bundle for PAX -->
+    <!-- needed to get a org.slf4j bundle for PAX 
+    NOTE: As we also inherit slf4j-log4j from jena-parent, we will get this
+    warning at startup:
+
+SLF4J: Class path contains multiple SLF4J bindings.
+SLF4J: Found binding in [jar:file:/home/stain/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
+SLF4J: Found binding in [jar:file:/home/stain/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
+SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
+SLF4J: Actual binding is of type [org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory]
+
+    As long as the actual binding is the org.ops4j binding, this can be ignored.
+
+    -->
     <dependency>
       <groupId>org.ops4j.pax.logging</groupId>
       <artifactId>pax-logging-log4j2</artifactId>
@@ -74,6 +86,7 @@ limitations under the License.
       <groupId>org.ops4j.pax.logging</groupId>
       <artifactId>pax-logging-api</artifactId>
       <version>${pax.logging.version}</version>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
@@ -130,7 +143,7 @@ limitations under the License.
           <systemPropertyVariables>
             <!-- So the test can find the current version of jena-osgi -->
             <jena-osgi.version>${project.version}</jena-osgi.version>
-            <!-- not so noisy logging -->
+            <!-- not so noisy OSGi logging -->
             <org.ops4j.pax.logging.DefaultServiceLog.level>WARN</org.ops4j.pax.logging.DefaultServiceLog.level>
           </systemPropertyVariables>
         </configuration>