You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/02/06 16:42:50 UTC

[3/3] qpid-jms git commit: Provide a logging implementation and config for the examples to avoid notice from SLF4J that it is using a no-op binding

Provide a logging implementation and config for the examples to avoid notice from SLF4J that it is using a no-op binding


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/d4d7b281
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/d4d7b281
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/d4d7b281

Branch: refs/heads/master
Commit: d4d7b28109d79e3498af283959a299732accc169
Parents: dc10daf
Author: Robert Gemmell <ro...@apache.org>
Authored: Fri Feb 6 15:40:38 2015 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Feb 6 15:40:38 2015 +0000

----------------------------------------------------------------------
 qpid-jms-examples/pom.xml                       |  7 +++++
 .../src/main/resources/log4j.properties         | 27 ++++++++++++++++++++
 2 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/d4d7b281/qpid-jms-examples/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-examples/pom.xml b/qpid-jms-examples/pom.xml
index 7aa322a..9c9a93c 100644
--- a/qpid-jms-examples/pom.xml
+++ b/qpid-jms-examples/pom.xml
@@ -37,6 +37,13 @@
       <groupId>org.apache.qpid</groupId>
       <artifactId>qpid-jms-client</artifactId>
     </dependency>
+
+    <!-- Provide a logging implementating to avoid
+         notice from SLF4J that none was found -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+    </dependency>
   </dependencies>
 
   <build>

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/d4d7b281/qpid-jms-examples/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/qpid-jms-examples/src/main/resources/log4j.properties b/qpid-jms-examples/src/main/resources/log4j.properties
new file mode 100644
index 0000000..8d88e29
--- /dev/null
+++ b/qpid-jms-examples/src/main/resources/log4j.properties
@@ -0,0 +1,27 @@
+#
+# 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.rootLogger=INFO, stdout
+
+log4j.logger.org.apache.qpid.jms=WARN
+
+# CONSOLE appender
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] - %-5p %-30.30c{1} - %m%n


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org