Logging macros for the SDK.
This file defines common logging macros with log levels to be used within the SDK. These macros can also be used in the IoT application code as a common way to output logs. The log levels can be tuned by modifying the makefile. Removing (commenting out) the IOT_* statement in the makefile disables that log level.
It is expected that the macros below will be modified or replaced when porting to specific hardware platforms as printf may not be the desired behavior.
#include <stdio.h>
#include <stdlib.h>
Macros | |
#define | DEBUG(...) |
Debug level logging macro. More... | |
#define | ERROR(...) |
Error level logging macro. More... | |
#define | INFO(...) |
Info level logging macro. More... | |
#define | WARN(...) |
Warn level logging macro. More... | |
#define DEBUG | ( | ... | ) |
Debug level logging macro.
Macro to expose function, line number as well as desired log message.
Referenced by _decode_board_info(), _exosite_example_configure_http_client(), _load_setting_from_sd(), _save_setting_to_sd(), _sd_init(), aws_iot_shadow_connect(), exosite_example_activiate(), exosite_example_init(), exosite_example_read_and_write(), io1_board_get_info(), io1_board_get_lightvalue(), main(), main_http_client_callback(), parsing_http_response_data(), registerJsonTokenOnDelta(), shadow_delta_callback(), and wifi_cb().
#define ERROR | ( | ... | ) |
Error level logging macro.
Macro to expose function, line number as well as desired log message.
#define INFO | ( | ... | ) |
Info level logging macro.
Macro to expose desired log message. Info messages do not include automatic function names and line numbers.
#define WARN | ( | ... | ) |
Warn level logging macro.
Macro to expose function, line number as well as desired log message.
Referenced by AckStatusCallback(), extractClientToken(), isJsonValidAndParse(), isReceivedJsonValid(), parseBooleanValue(), parseDoubleValue(), parseFloatValue(), parseInteger16Value(), parseInteger32Value(), parseInteger8Value(), parseStringValue(), parseUnsignedInteger16Value(), parseUnsignedInteger32Value(), parseUnsignedInteger8Value(), and shadow_delta_callback().