Go to the documentation of this file.
28 #include <azure/core/_az_cfg_prefix.h>
30 #define _az_LOG_MAKE_CLASSIFICATION(facility, code) \
31 ((int32_t)((uint32_t)(facility) << 16) | (uint32_t)(code))
44 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_HTTP, 1),
47 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_HTTP, 2),
54 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_MQTT, 1),
57 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_MQTT, 2),
62 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_IOT, 2),
65 = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_IOT, 3),
92 (void)classifications;
94 #endif // AZ_NO_LOGGING
103 #ifndef AZ_NO_LOGGING
108 (void)az_log_message_callback;
110 #endif // AZ_NO_LOGGING
112 #include <azure/core/_az_cfg_suffix.h>
@ AZ_LOG_HTTP_REQUEST
HTTP request is about to be sent.
Definition: az_log.h:43
Definition of az_result and helper functions.
@ AZ_LOG_IOT_SAS_TOKEN
IoT Client generated new SAS token.
Definition: az_log.h:61
az_log_classification
Identifies the classifications of log messages produced by the SDK.
Definition: az_log.h:39
@ AZ_LOG_END_OF_LIST
Terminates the classification array passed to az_log_set_classifications().
Definition: az_log.h:40
void(* az_log_message_fn)(az_log_classification classification, az_span message)
Defines the signature of the callback function that application developers must write in order to rec...
Definition: az_log.h:75
@ AZ_LOG_MQTT_RECEIVED_TOPIC
Accepted MQTT topic received.
Definition: az_log.h:53
void az_log_set_classifications(az_log_classification const classifications[])
Allows the application to specify which az_log_classification types it is interested in receiving.
@ AZ_LOG_MQTT_RECEIVED_PAYLOAD
Accepted MQTT payload received.
Definition: az_log.h:56
@ AZ_LOG_HTTP_RESPONSE
HTTP response was received.
Definition: az_log.h:46
An az_span represents a contiguous byte buffer and is used for string manipulations,...
@ AZ_LOG_HTTP_RETRY
First HTTP request did not succeed and will be retried.
Definition: az_log.h:49
@ AZ_LOG_IOT_RETRY
IoT Client retry.
Definition: az_log.h:59
void az_log_set_callback(az_log_message_fn az_log_message_callback)
Sets the function that will be invoked to report an SDK log message.
@ AZ_LOG_IOT_AZURERTOS
Azure IoT classification for Azure RTOS.
Definition: az_log.h:64
Represents a "view" over a byte buffer that represents a contiguous region of memory....
Definition: az_span.h:33