qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Qpid > Debug using log4j
Date Fri, 14 Aug 2009 14:10:00 GMT
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=qpid&amp;forWysiwyg=true"
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/qpid/Debug+using+log4j">Debug
using log4j</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~ritchiem">Martin
     Deprecated Logging Connection State due to Operational Logging
          <div id="versionComment" class="noteMacro" style="display:none; padding: 5px;">
     Deprecated Logging Connection State due to Operational Logging<br />
     <div class="notificationGreySide">
         <h2><a name="Debugusinglog4j-Debuggingwithlog4jconfigurations"></a>Debugging
with log4j configurations</h2>

<p>Unfortunately setting of logging in the Java Broker is not simply a matter of setting
one of WARN,INFO,DEBUG. At some point in the future we may have more BAU logging that falls
in to that category but more likely is that we will have a varioius config files that can
be swapped in (dynamically) to understand what is going on.</p>

<p>This page will be host to a variety of useful configuration setups that will allow
a user or developer to extract only the information they are interested in logging. Each section
will be targeted at logging in a particular area and will include a full log4j file that can
be used. In addition the logging <em>category</em> elements will be presented
and discussed so that the user can create their own file.</p>

<p>Currently the configuration that is available has not been fully documented and as
such there are gaps in what is desired and what is available. Some times this is due to the
desire to reduce the overhead in message processing, but sometimes it is simply an oversight.
Hopefully in future releases the latter will be addressed but care needs to be taken when
adding logging to the 'Message Flow' path as this will have performance implications.</p>

<h3><a name="Debugusinglog4j-LoggingConnectionState%5CDeprecated%5C"></a>Logging
Connection State &#42;Deprecated&#42;</h3>

<p><b>deprecation notice</b> Version 0.6 of the Java broker includes <a
href="/confluence/display/qpid/Configure+Operational+Status+Logging" title="Configure Operational
Status Logging">Operational Status Logging</a> functionality which improves upon
these messages and as such enabling status logging would be more beneficial. <br/>
The configuration file has been left here for assistence with broker versions prior to 0.6,</p>

<p>The goals of this configuration are to record:</p>
	<li>New Connections</li>
	<li>New Consumers</li>
	<li>Identify slow consumers</li>
	<li>Closing of Consumers</li>
	<li>Closing of Connections</li>

<p>An additional goal of this configuration is to minimise any impact to the 'message
flow' path. So it should not adversely affect production systems.</p>

<p><a href="/confluence/download/attachments/109886/application-connections.xml?version=2">application-connections.xml</a></p>

<h3><a name="Debugusinglog4j-DebuggingMyApplication"></a>Debugging My Application</h3>

<p>This is the most often asked for set of configuration. The goals of this configuration
are to record:</p>
	<li>New Connections</li>
	<li>New Consumers</li>
	<li>Message Publications</li>
	<li>Message Consumption</li>
	<li>Identify slow consumers</li>
	<li>Closing of Consumers</li>
	<li>Closing of Connections</li>

<p>NOTE: This configuration enables message logging on the 'message flow' path so should
only be used were message volume is low.<br/>
<b>Every message that is sent to the broker will generate at least four logging statements</b><br/>
<a href="/confluence/download/attachments/109886/application-debug.xml?version=2">application-debug.xml</a></p>

     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>

       <a href="http://cwiki.apache.org/confluence/display/qpid/Debug+using+log4j">View
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=109886&revisedVersion=6&originalVersion=5">View
       <a href="http://cwiki.apache.org/confluence/display/qpid/Debug+using+log4j?showComments=true&amp;showCommentArea=true#addcomment">Add

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

View raw message