Qpid
  1. Qpid
  2. QPID-4651

C++ Broker logging could use an easy way to disable log messages

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20
    • Fix Version/s: 0.23
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      The logging module currently has shorthand switches for enabling categories of log messages. A convenience for the user would be a switch that disabled categories of log messages with similar syntax and effect. For example:

      --log-enable debug+

      enables debug and higher for all classes of log message.

      Often the casual experimenting user would like to see debug or trace messages but not be crushed by a flood of Network and Management debug and trace messages. The proposal here is to add a switch like

      -log-disable debug:Management

      that would turn off messages from a class (like Management) at debug and lower level.

      --log-disable would turn off logging the same way that --log-enable turns on logging. There are thirteen log categories and enabling only the ones you want is tedious.

        Activity

        Hide
        Chuck Rolke added a comment -

        The code is committed at Committed revision 1476409.
        IOU documentation in qpid/doc/book/src/cpp-broker

        Show
        Chuck Rolke added a comment - The code is committed at Committed revision 1476409. IOU documentation in qpid/doc/book/src/cpp-broker
        Hide
        Chuck Rolke added a comment -

        Fixed at commits 1476409 and 1478103 (which adds doc text)

        Show
        Chuck Rolke added a comment - Fixed at commits 1476409 and 1478103 (which adds doc text)
        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - Released in Qpid 0.24, http://qpid.apache.org/releases/qpid-0.24/index.html

          People

          • Assignee:
            Chuck Rolke
            Reporter:
            Chuck Rolke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development