Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 583131 - Fix Java Client logging
Fix Java Client logging
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java (Show other bugs)
1.2
All Linux
urgent Severity urgent
: 1.3
: ---
Assigned To: Jonathan Robie
Jiri Kolar
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-16 14:48 EDT by Rajith Attapattu
Modified: 2010-10-14 12:00 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The Java Client is now shipped with the 'slf4j' API in the qpid-deps.jar Java Archive (JAR) file, and the 'log4j' binding in slf4j-log4j.jar.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 12:00:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Rajith Attapattu 2010-04-16 14:48:45 EDT
Description of problem:
The Java Client is using slf4j as a logging façade. We currently ship log4j as the default binding. But it poses several issues,

a) log4j if not configured properly will default to DEBUG - see 493559

b) We are unable to ship a log4j.xml or a log4j.properties file as it will interfere with the end users setup.

c) If we don't ship them, then we risk picking up from some log4j.xml/property file which is isn't configured properly leading to qpid logging at DEBUG mode.

There are several possible solutions for this discussed in the upstream project Qpid.

1. Ship nothing forcing the enduser to configure logging themselves.
2. Ship our own binding which will default to WARN and print a warning message asking the end-user to configure the logging properly.
3. Ship with the binding for jdk logging.

Version-Release number of selected component (if applicable):
Affects all previously released versions

How reproducible:
N/A

Steps to Reproduce:
N/A  

Actual results:
N/A

Expected results:
N/A

Additional info:
Comment 1 Gordon Sim 2010-05-21 06:57:45 EDT
As of qpid-java-0.7.946106 the default logging level is INFO out the box and this is horribly noisy when e.g. running the hello world example.
Comment 2 Rajith Attapattu 2010-06-09 11:56:43 EDT
We now ship the slf4j api in qpid-deps.jar and the log4j binding in slf4j-log4j.jar. Both jars are placed under /usr/share/java/qpid-deps.

The documentation explains,

1. How to use a different binding.
2. How to configure the default binding (log4j) using an example.
3. A warning that if the default binding is used, logging needs to be explicitly configured or else it will default to DEBUG which will degrade performance.

Regards,

Rajith
Comment 3 Jiri Kolar 2010-06-29 04:34:51 EDT
Fixed, Verified
both jars are present,

packages:
qpid-java-client-0.7.946106-3
qpid-java-common-0.7.946106-3


Documentation:
1.present
2.example added
3.warning present

package:
rhm-docs-0.7.946106-2

-=#> VERIFIED
Comment 4 Martin Prpič 2010-10-10 05:22:22 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The Java Client is now shipped with the 'slf4j' API in 'qpid-deps.jar' and the 'log4j' binding in 'slf4j-log4j.jar'.
Comment 5 Douglas Silas 2010-10-11 10:00:59 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-The Java Client is now shipped with the 'slf4j' API in 'qpid-deps.jar' and the 'log4j' binding in 'slf4j-log4j.jar'.+The Java Client is now shipped with the 'slf4j' API in the qpid-deps.jar Java Archive (JAR) file, and the 'log4j' binding in slf4j-log4j.jar.
Comment 7 errata-xmlrpc 2010-10-14 12:00:23 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html

Note You need to log in before you can comment on or make changes to this bug.