Thanks Gordon,
I prefer second option. But what I am really missing is the broker
method for changing the log level.
Something like:
Session().addBroker("user/pass@host:port", timeout).setLogLevel(DEBUG)
Is there something like this?
Thanks,
Tomas
On Tue, Nov 29, 2011 at 2:40 PM, Gordon Sim <[email protected]> wrote:
> 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]
>
--
Tomáš Šoltys
[email protected]
http://www.range-software.com
(+420) 776-843-663
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]