Bug 797092

Summary: Support log category exclusion
Product: Red Hat Enterprise MRG Reporter: ranjith ruban <rruban>
Component: qpid-cppAssignee: Chuck Rolke <crolke>
Status: CLOSED ERRATA QA Contact: Petra Svobodová <psvobodo>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2CC: freznice, iboverma, jross, lzhaldyb, psvobodo, rpiddapa
Target Milestone: 3.0Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-4.el6, qpid-cpp-0.22-4.el5 Doc Type: Enhancement
Doc Text:
Logs are sometimes flooded by thousands of log messages that may not be considered important during issue investigation. It is now possible to specify a broker option that turns off log messages using precise filters. During problem investigation, users can control log file content to better understand a specific issue, rather than manually filtering out extraneous log events. The feature is supported in the C++ Broker, by specifying --log-disable.
Story Points: ---
Clone Of:
: 957975 (view as bug list) Environment:
Last Closed: 2014-09-24 15:04:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 957975    

Comment 1 Justin Ross 2012-12-07 14:51:55 UTC
Chuck, is this now possible with 0.18?

Comment 3 Chuck Rolke 2012-12-07 15:33:20 UTC
It is possible indirectly. Instead of "filtering out" QMF messages the user can "filter on" everything but QMF messages. That is accomplished by a series of "--log-enable debug+:<class>" log filters that name all the classes except Management.

Comment 4 Justin Ross 2012-12-07 15:49:03 UTC
Okay, let's treat this one as an RFE for opting out of (versus the existing "opt in to") a set of classes.

(In reply to comment #3)
> It is possible indirectly. Instead of "filtering out" QMF messages the user
> can "filter on" everything but QMF messages. That is accomplished by a
> series of "--log-enable debug+:<class>" log filters that name all the
> classes except Management.

Comment 6 Chuck Rolke 2013-04-29 18:55:41 UTC
This is available upstream on trunk at r1476409.
http://svn.apache.org/viewvc?view=revision&revision=r1476409

Comment 11 Petra Svobodová 2014-02-06 10:13:45 UTC
Filter out log messages are possible through disabling one or more log levels or sending entities in broker logging, performed by "--log-disable <rule>:<pattern>" option. 

Verified on qpid-cpp-0.22-33 on Rhel6.5-i686 and Rhel6.5-x86_64.

--> VERIFIED

Comment 13 errata-xmlrpc 2014-09-24 15:04:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html