Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

boost::mqtt5::logger

A logger class that can used by the mqtt_client to output the results of operations to stderr.

Synopsis

Defined in header <boost/mqtt5/logger.hpp>

class logger;
Member Functions

Name

Description

at_connack

Outputs the contents of the CONNACK packet sent by the Broker.

at_disconnect

Outputs the contents of the DISCONNECT packet sent by the Broker.

at_resolve

Outputs the results of the resolve operation.

at_tcp_connect

Outputs the results of the TCP connect operation.

at_tls_handshake

Outputs the results of the TLS handshake operation.

at_ws_handshake

Outputs the results of the WebSocket handshake operation.

logger [constructor]

Constructs a logger that filters log messages based on the specified log level.

Description

All functions are invoked directly within the mqtt_client using its default executor. If the mqtt_client is initialized with an explicit or implicit strand, none of the functions will be invoked concurrently.

Thread safety

Distinct objects: usafe.

Shared objects: unsafe.

This class is not thread-safe.

Convenience header <boost/mqtt5.hpp>


PrevUpHomeNext