diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-06-09 02:28:54 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-06-09 02:28:54 +0000 |
| commit | 1526f7085394de871f66ef0ab4399230e9649d73 (patch) | |
| tree | f95a358f6b52f893aa777333f10aac4ee00eb5ac /qpid | |
| parent | 42bbbaff75078b2e3fc389be8f151870d1fbe919 (diff) | |
| download | qpid-python-1526f7085394de871f66ef0ab4399230e9649d73.tar.gz | |
Added a section on how to configure Java client logging.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@952887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
| -rw-r--r-- | qpid/doc/book/src/Programming-In-Apache-Qpid.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qpid/doc/book/src/Programming-In-Apache-Qpid.xml b/qpid/doc/book/src/Programming-In-Apache-Qpid.xml index 178f252172..0995cc63c4 100644 --- a/qpid/doc/book/src/Programming-In-Apache-Qpid.xml +++ b/qpid/doc/book/src/Programming-In-Apache-Qpid.xml @@ -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"> |
