You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2010/06/09 04:28:54 UTC

svn commit: r952887 - /qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml

Author: rajith
Date: Wed Jun  9 02:28:54 2010
New Revision: 952887

URL: http://svn.apache.org/viewvc?rev=952887&view=rev
Log:
Added a section on how to configure Java client logging.

Modified:
    qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml

Modified: qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml?rev=952887&r1=952886&r2=952887&view=diff
==============================================================================
--- qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml (original)
+++ qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml Wed Jun  9 02:28:54 2010
@@ -2942,6 +2942,23 @@ producer.send(m);
       </table>
 
     </section>
+    
+    <section id="section-JMS-Loggin">
+      <title>JMS Client Loggin</title>
+      <para>The JMS Client logging is handled using <ulink url="http://www.slf4j.org/">SLF4J</ulink>. A user can place a slf4j binding of their choice in the classpath and configure the respective logging mechanism to suit their needs. Ex bindings include log4j, jdk1.4 logging ..etc</para>
+
+      <para>Following is an example on how to configure Qpid logging with the log4j binding.</para>
+
+      <para>You could place the snippet below in a log4j.properties file and place it in the classpath or explicitly specify it using the -Dlog4j.configuration property. The following configures the qpid client to log at the WARN level</para>
+      <programlisting><![CDATA[
+log4j.logger.org.apache.qpid=WARN, console
+log4j.additivity.org.apache.qpid=false
+
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.Threshold=all
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%t %d %p [%c{4}] %m%n
+      ]]></programlisting>
   </chapter>
 
   <chapter id="QpidWCF">



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org