qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomáš Šoltys <tomas.sol...@gmail.com>
Subject Re: Set log level
Date Wed, 30 Nov 2011 11:32:22 GMT
Thanks a lot. It works just as I wanted it to.

Tomas

On Wed, Nov 30, 2011 at 11:02 AM, Gordon Sim <gsim@redhat.com> wrote:
> On 11/30/2011 07:54 AM, Tomáš Šoltys wrote:
>>
>> 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?
>
>
> Not quite, but close. The following would work:
>
>  import qmf.console
>
>  ssn = qmf.console.Session()
>  ssn.addBroker("localhost:5672")
>  broker = ssn.getObjects(_class="broker")[0]
>  broker.setLogLevel("debug+")
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>



-- 
Tomáš Šoltys
tomas.soltys@gmail.com
http://www.range-software.com
(+420) 776-843-663

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message