On 11/29/2011 01:33 PM, Tomáš Šoltys wrote:
Is there a way to change a broker log level from python script while
broker is running?

Yes. One way is to use or emulate the qpid-ctrl script[1]. This was designed to run from the command line for testing the changing of log-level, e.g. qpid-ctrl -b localhost:$PORT setLogLevel level='debug+:Broker', but can actually be used to ionvoke any QMFv2 'method' on the broker.

Alternatively you can use one of the QMF APIs. These aren't terribly well documented, but you could perhaps get the idea by looking at some of the management tests[2], specifically those that invoke methods on the broker such as the simple test_methods_sync.

[1] https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/src/tests/qpid-ctrl

[2] https://svn.apache.org/repos/asf/qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/management.py

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to