|
AWS IoT Embedded C Device SDK
|
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. More...
#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Macros | |
| #define | DEBUG(...) |
| Debug level logging macro. More... | |
| #define | FUNC_ENTRY |
| Debug level trace logging macro. More... | |
| #define | FUNC_EXIT |
| #define | FUNC_EXIT_RC(x) { return x; } |
| #define | INFO(...) |
| Info level logging macro. More... | |
| #define | WARN(...) |
| Warn level logging macro. More... | |
| #define | ERROR(...) |
| Error level logging macro. More... | |
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.
| #define DEBUG | ( | ... | ) |
Macro to expose function, line number as well as desired log message.
| #define ERROR | ( | ... | ) |
Macro to expose function, line number as well as desired log message.
| #define FUNC_ENTRY |
Macro to print message function entry and exit
| #define INFO | ( | ... | ) |
Macro to expose desired log message. Info messages do not include automatic function names and line numbers.
| #define WARN | ( | ... | ) |
Macro to expose function, line number as well as desired log message.
1.8.10