Quantcast

turn on logging in qpid c++ client

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

turn on logging in qpid c++ client

Todd Herman
I have a service that I wrote in C#.  It is using the dotnet binding for the c++ qpid client.  I have logging in my application that logs what is going on.  Ion the conneciton object, I have turned on AutoReconnect.  When my code tries to connect but can't, my code appears to hang.  The issue is that the connection is trying to reconnect but I have no indication of this because I don't seem to have a way to be notified of this if AutoReconnect is on.

Previously my code was not a service but just a console application.  When it ran that way I actuall saw log messages written to the console that were coming from the qpid library itself.  I didn't do anything to turn those on.  I am not sure why I can't see those messages now but I need to either see those internal log messages or have some way to know that the conenction failed and is being retried.

~ Todd

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: turn on logging in qpid c++ client

Gordon Sim
On 04/16/2012 03:26 AM, Todd Herman wrote:
> I have a service that I wrote in C#.  It is using the dotnet binding for the c++ qpid client.  I have logging in my application that logs what is going on.  Ion the conneciton object, I have turned on AutoReconnect.  When my code tries to connect but can't, my code appears to hang.  The issue is that the connection is trying to reconnect but I have no indication of this because I don't seem to have a way to be notified of this if AutoReconnect is on.
>
> Previously my code was not a service but just a console application.  When it ran that way I actuall saw log messages written to the console that were coming from the qpid library itself.  I didn't do anything to turn those on.  I am not sure why I can't see those messages now but I need to either see those internal log messages or have some way to know that the conenction failed and is being retried.

You can configure the logging with the QPID_LOG_ENABLE environment
variable. E.g. export QPID_LOG_ENABLE=info+

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: turn on logging in qpid c++ client

Todd Herman
I am using Windows and don't know what "export" is.  I did, however, already setup the log enable environment variable and that didn't seem to do anything.  Does anyone have any other suggestions?

Todd Herman
Senior Software Engineer
 
APX Labs
2350 Corporate Park Drive, Ste. 510 | Herndon, VA 20171
m: 703-489-8761 | www.apx-labs.com | @APXLabs


-----Original Message-----
From: Gordon Sim [mailto:[hidden email]]
Sent: Monday, April 16, 2012 4:09 AM
To: [hidden email]
Subject: Re: turn on logging in qpid c++ client

On 04/16/2012 03:26 AM, Todd Herman wrote:
> I have a service that I wrote in C#.  It is using the dotnet binding for the c++ qpid client.  I have logging in my application that logs what is going on.  Ion the conneciton object, I have turned on AutoReconnect.  When my code tries to connect but can't, my code appears to hang.  The issue is that the connection is trying to reconnect but I have no indication of this because I don't seem to have a way to be notified of this if AutoReconnect is on.
>
> Previously my code was not a service but just a console application.  When it ran that way I actuall saw log messages written to the console that were coming from the qpid library itself.  I didn't do anything to turn those on.  I am not sure why I can't see those messages now but I need to either see those internal log messages or have some way to know that the conenction failed and is being retried.

You can configure the logging with the QPID_LOG_ENABLE environment variable. E.g. export QPID_LOG_ENABLE=info+

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: turn on logging in qpid c++ client

Darryl L. Pierce
On Mon, Apr 16, 2012 at 12:29:51PM +0000, Todd Herman wrote:
> I am using Windows and don't know what "export" is.

For windows it would be:

set QPID_LOG_ENABLE="info+"

See, as an example, the file qpid-server.bat in the distribution source.

--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/


attachment0 (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: turn on logging in qpid c++ client

Gordon Sim
In reply to this post by Todd Herman
On 04/16/2012 01:29 PM, Todd Herman wrote:
> I am using Windows and don't know what "export" is.

Oops, sorry! I missed the obvious there :-)

> I did, however, already setup the log enable environment variable and that didn't seem to do anything.  Does anyone have any other suggestions?

Since you are running as a service, the console output may be lost. You
could also define a value for QPID_LOG_TO_FILE, to have the log go to a
specific file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...