![]() |
Home | Libraries | People | FAQ | More |
LoggerType represents an
object type that will be used by the to log events.
mqtt_client
A type satisfies the LoggerType
concept if it defines any number (including zero)
of the following functions:
|
Function signature |
Arguments |
Description |
|---|---|---|
|
|
|
Invoked when the resolve operation is complete. |
|
|
|
Invoked when the TCP connect operation is complete. |
|
|
|
Invoked when the TLS handshake operation is complete. |
|
|
|
Invoked when the WebSocket handshake operation is complete. |
|
|
|
Invoked when the |
|
|
|
Invoked when the |
For example, a type T that
defines at_connack and at_disconnect functions with their respective
arguments is considered a valid LoggerType.
This allows you to create your own LoggerType
classes with functions of interest.
All defined functions are invoked directly within the using its
default executor. If the mqtt_client is initialized
with an explicit or implicit strand, none of the functions will be invoked
concurrently.
mqtt_client
![]() |
Warning |
|---|---|
Defined functions should not block and stop the |
A class that satifies this concept is logger.