Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Logging

Confirmed that this works. Setting MQTT_C_CLIENT_TRACE=ON the trace results in trace on stdout. PROTOCOL is the minimum level, incidentally.

Need to document this. I'll raise a ticket.


On Sun, Feb 24, 2013 at 5:29 PM, andypiperuk@xxxxxxxxx <andypiperuk@xxxxxxxxx> wrote:
Not played with this myself (and we should ensure that it is documented if it is not), but looking at Log.c I believe it is controlled by three environment variables: MQTT_C_CLIENT_TRACE, MQTT_C_CLIENT_TRACE_MAX_LINES and MQTT_C_CLIENT_TRACE_LEVEL

TRACE I think can be ON or null (off), and LEVEL can be MAXIMUM, MEDIUM, MINIMUM, PROTOCOL or ERROR. MAX_LINES is an integer value.



On Sun, Feb 24, 2013 at 1:37 PM, Cullen, Mark <mark.cullen@xxxxxxxxxxxx> wrote:
Hello

Can anyone give me some guidance on how to enable logging in the Paho C client.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/paho-dev



--
Andy Piper | Farnborough, Hampshire (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper



--
Andy Piper | Farnborough, Hampshire (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

Back to the top